Map Ctrl-Left and Ctrl-Right in FreeBSD shell
This commit is contained in:
parent
3e6d660ba1
commit
7f94b9125f
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue