Map Ctrl-Left and Ctrl-Right in FreeBSD shell

This commit is contained in:
Anthony Rose 2022-09-16 08:15:51 +01:00
parent 3e6d660ba1
commit 7f94b9125f

View file

@ -92,6 +92,12 @@ then
PS1="%B%n@%m%#%b "
else
if [ $(uname -s) = FreeBSD ]
then
bind "^[[1;5C" em-next-word
bind "^[[1;5D" ed-prev-word
fi
# POSIX-compatible prompt.
PS1="$(id -un)@$(uname -n | sed 's/\..*$//')$ "
fi