xref: /freebsd/share/skel/dot.shrc (revision 02e9120893770924227138ba49df1edb3896112a)
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
21alias h='fc -l'
22alias j=jobs
23alias m="$PAGER"
24alias ll='ls -laFo'
25alias l='ls -l'
26alias 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
34bind ^[[A ed-search-prev-history
35bind ^[[B ed-search-next-history
36
37# # ctrl+arrow allow to jump from words to words
38bind "\\e[1;5C" em-next-word
39bind "\\e[1;5D" ed-prev-word
40alias history='fc -l'
41
42# Fix home/del for mobaxterm
43bind ^[[5~ ed-move-to-beg
44bind ^[[6~ ed-move-to-end
45
46# set prompt: ``username@hostname:directory $ ''
47PS1="\u@\h:\w \\$ "
48
49# search path for cd(1)
50# CDPATH=:$HOME
51