Change prompt for emoji
This commit is contained in:
parent
65f85d2c7e
commit
c97c60e41a
|
@ -13,9 +13,9 @@ fi
|
||||||
palette_dir=$(mktemp -d)
|
palette_dir=$(mktemp -d)
|
||||||
|
|
||||||
ffmpeg -y -ss $2 -t $3 -i $1 \
|
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 \
|
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
|
rm -rf $palette_dir
|
||||||
|
|
|
@ -21,11 +21,11 @@ if [[ $UID -ge 1000 ]]; then # normal user
|
||||||
eval PR_USER_OP='${PR_GREEN}%#${PR_NO_COLOR}'
|
eval PR_USER_OP='${PR_GREEN}%#${PR_NO_COLOR}'
|
||||||
local PR_ARROW_UP='${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_ARROW_DOWN='${PR_GREEN}└${PR_NO_COLOR}'
|
||||||
local PR_PROMPT='$PR_GREEN▶$PR_NO_COLOR'
|
local PR_PROMPT='$PR_GREEN▷$PR_NO_COLOR'
|
||||||
else
|
else
|
||||||
eval PR_USER='${PR_MAGENTA}%n${PR_NO_COLOR}'
|
eval PR_USER='${PR_MAGENTA}%n${PR_NO_COLOR}'
|
||||||
eval PR_USER_OP='${PR_BLUE}%#${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_UP='$PR_MAGENTA┌── ${PR_NO_COLOR}'
|
||||||
local PR_ARROW_DOWN='$PR_MAGENTA└${PR_NO_COLOR}'
|
local PR_ARROW_DOWN='$PR_MAGENTA└${PR_NO_COLOR}'
|
||||||
fi
|
fi
|
||||||
|
@ -34,7 +34,7 @@ elif [[ $UID -eq 0 ]]; then # root
|
||||||
eval PR_USER_OP='${PR_RED}%#${PR_NO_COLOR}'
|
eval PR_USER_OP='${PR_RED}%#${PR_NO_COLOR}'
|
||||||
local PR_ARROW_UP='${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_ARROW_DOWN='${PR_RED}└${PR_NO_COLOR}'
|
||||||
local PR_PROMPT='$PR_RED▶$PR_NO_COLOR'
|
local PR_PROMPT='$PR_RED▷$PR_NO_COLOR'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if we are on SSH or not
|
# Check if we are on SSH or not
|
||||||
|
|
Loading…
Reference in New Issue