aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-10-20 09:23:13 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-10-20 09:23:13 +0000
commit5fe97373486619373e3eeecb25582b5c937a26c5 (patch)
tree386a88120dde9d51b35c3102186744789630f8e7
parent3f550f01918511ac73884828f98ad1eaae2c18b4 (diff)
downloadsrc-5fe97373486619373e3eeecb25582b5c937a26c5.tar.gz
src-5fe97373486619373e3eeecb25582b5c937a26c5.zip
skel: update .shrc as well
Somehow we end up having 2 definition of the same .shrc in the source tree, both of them should have been updated. A batter fix would be to only keep one copy of the same file. but that would be for another commit Reported by: lme
-rw-r--r--share/skel/dot.shrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/skel/dot.shrc b/share/skel/dot.shrc
index f497bd66f819..56a6b1828131 100644
--- a/share/skel/dot.shrc
+++ b/share/skel/dot.shrc
@@ -31,6 +31,14 @@ alias g='egrep -i'
# alias mv='mv -i'
# alias rm='rm -i'
+# # csh like history on arrow up and down
+bind ^[[A ed-search-prev-history
+bind ^[[B ed-search-next-history
+
+# # ctrl+arrow allow to jump from words to words
+bind "\\e[1;5C" em-next-word
+bind "\\e[1;5D" ed-prev-word
+alias history='fc -l'
# set prompt: ``username@hostname:directory $ ''
PS1="\u@\h:\w \\$ "