Change prompt for emoji

This commit is contained in:
Thomas Forgione 2021-04-21 14:55:45 +02:00
parent 65f85d2c7e
commit c97c60e41a
2 changed files with 5 additions and 5 deletions

View File

@ -13,9 +13,9 @@ fi
palette_dir=$(mktemp -d)
ffmpeg -y -ss $2 -t $3 -i $1 \
-vf fps=10,scale=320:-1:flags=lanczos,palettegen $palette_dir/palette.png > /dev/null 2>&1
-vf fps=30,scale=320:-1:flags=lanczos,palettegen $palette_dir/palette.png > /dev/null 2>&1
ffmpeg -ss $2 -t $3 -i $1 -i $palette_dir/palette.png -filter_complex \
"fps=10,scale=320:-1:flags=lanczos[x];[x][1:v]paletteuse" -y output.gif > /dev/null 2>&1
"fps=30,scale=320:-1:flags=lanczos[x];[x][1:v]paletteuse" -y output.gif > /dev/null 2>&1
rm -rf $palette_dir

View File

@ -21,11 +21,11 @@ if [[ $UID -ge 1000 ]]; then # normal user
eval PR_USER_OP='${PR_GREEN}%#${PR_NO_COLOR}'
local PR_ARROW_UP='${PR_GREEN}┌── ${PR_NO_COLOR}'
local PR_ARROW_DOWN='${PR_GREEN}└${PR_NO_COLOR}'
local PR_PROMPT='$PR_GREEN$PR_NO_COLOR'
local PR_PROMPT='$PR_GREEN$PR_NO_COLOR'
else
eval PR_USER='${PR_MAGENTA}%n${PR_NO_COLOR}'
eval PR_USER_OP='${PR_BLUE}%#${PR_NO_COLOR}'
local PR_PROMPT='$PR_MAGENTA$PR_NO_COLOR'
local PR_PROMPT='$PR_MAGENTA$PR_NO_COLOR'
local PR_ARROW_UP='$PR_MAGENTA┌── ${PR_NO_COLOR}'
local PR_ARROW_DOWN='$PR_MAGENTA└${PR_NO_COLOR}'
fi
@ -34,7 +34,7 @@ elif [[ $UID -eq 0 ]]; then # root
eval PR_USER_OP='${PR_RED}%#${PR_NO_COLOR}'
local PR_ARROW_UP='${PR_RED}┌── ${PR_NO_COLOR}'
local PR_ARROW_DOWN='${PR_RED}└${PR_NO_COLOR}'
local PR_PROMPT='$PR_RED$PR_NO_COLOR'
local PR_PROMPT='$PR_RED$PR_NO_COLOR'
fi
# Check if we are on SSH or not