]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/skel/dot.shrc
libarchive: merge security fix from vendor branch
[FreeBSD/FreeBSD.git] / share / skel / dot.shrc
1 #
2 # .shrc - bourne shell startup file 
3 #
4 # This file will be used if the shell is invoked for interactive use and
5 # the environment variable ENV is set to this file.
6 #
7 # see also sh(1), environ(7).
8 #
9
10
11 # file permissions: rwxr-xr-x
12 #
13 # umask 022
14
15 # Uncomment this to enable the builtin vi(1) command line editor in sh(1),
16 # e.g. ESC to go into visual mode.
17 # set -o vi
18
19
20 # some useful aliases
21 alias h='fc -l'
22 alias j=jobs
23 alias m="$PAGER"
24 alias ll='ls -laFo'
25 alias l='ls -l'
26 alias g='egrep -i'
27  
28 # # be paranoid
29 # alias cp='cp -ip'
30 # alias mv='mv -i'
31 # alias rm='rm -i'
32
33 # # csh like history on arrow up and down
34 bind ^[[A ed-search-prev-history
35 bind ^[[B ed-search-next-history
36
37 # # ctrl+arrow allow to jump from words to words
38 bind "\\e[1;5C" em-next-word
39 bind "\\e[1;5D" ed-prev-word
40 alias history='fc -l'
41
42 # Fix home/del for mobaxterm
43 bind ^[[5~ ed-move-to-beg
44 bind ^[[6~ ed-move-to-end
45
46 # set prompt: ``username@hostname:directory $ '' 
47 PS1="\u@\h:\w \\$ "
48
49 # search path for cd(1)
50 # CDPATH=:$HOME