-
Notifications
You must be signed in to change notification settings - Fork 2
/
bash_os-based
68 lines (59 loc) · 1.69 KB
/
bash_os-based
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# vim:ft=sh
if [[ "$UNAMES" == "FreeBSD" || "$UNAMES" == "OpenBSD" ]]; then
if [[ "$TERM" == "screen-256color" ]]; then
export TERM=xterm-256color
fi
fi
if [[ "$UNAMES" == "FreeBSD" ]]; then
if [[ ! -f ~/.inputrc ]]; then
echo 'set input-meta on
set output-meta on
set convert-meta off
$if mode=emacs
# for linux console and RH/Debian xterm
# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[6~": history-search-forward
# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert
# # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[5C": forward-word
"\e[5D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# gnome-terminal (escape + arrow key)
"\e[5C": forward-word
"\e[5D": backward-word
# gnome-terminal (control + arrow key)
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# konsole / xterm / rxvt (escape + arrow key)
"\e\e[C": forward-word
"\e\e[D": backward-word
# konsole (alt + arrow key)
"\e[1;3C": forward-word
"\e[1;3D": backward-word
# konsole (control + arrow key)
"\e[1;3C": forward-word
"\e[1;3D": backward-word
# aterm / eterm (control + arrow key)
"\eOc": forward-word
"\eOd": backward-word
# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
$endif' > ~/.inputrc
fi
export LANG=sv_SE.UTF-8
export PACKAGESITE="ftp://ftp.sunet.se/pub/FreeBSD/releases/i386/7.1-RELEASE/packages/Latest/"
export FTP_PASSIVE_MODE=1
fi
if [[ "$UNAMES" == "OpenBSD" ]]; then
export PKG_PATH="ftp://ftp.sunet.se/pub/OpenBSD/4.3/packages/i386"
fi
if [[ "$UNAMES" == "SunOS" ]]; then
export TERM=xterm
unalias grep
fi