xref: /freebsd/bin/sh/dot.shrc (revision 2e3f49888ec8851bafb22011533217487764fdb0)
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
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# read(2) of directories may not be desirable by default, as this will provoke
47# EISDIR errors from each directory encountered.
48# alias grep='grep -d skip'
49
50# set prompt: ``username@hostname:directory $ ''
51PS1="\u@\h:\w \\$ "
52
53# search path for cd(1)
54# CDPATH=:$HOME
55