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