all repos — dotfiles @ d703f75646023f72d4aaa9e7f8c9977085e94068

my *nix dotfiles

ksh/.kshrc (view raw)

 1HISTFILE=$HOME/.ksh_history
 2HISTSIZE=20000
 3
 4set -o emacs
 5
 6red="\033[31m"
 7grn="\033[32m"
 8ylw="\033[33m"
 9cyn="\033[36m"
10blu="\033[34m"
11prp="\033[35m"
12bprp="\033[35;1m"
13gry="\033[94m"
14rst="\033[0m"
15
16prompt_pwd() {
17    printf '%b' "\001${cyn}\002$(pwd)\001${rst}\002"
18}
19
20rootornot() {
21    [[ "$(id -u)" -eq 0 ]] &&
22        printf '%b' "\001${red}\002#\001${rst}\002"
23}
24
25PS1='\n$(prompt_pwd)\n▲$(rootornot) '
26PS2="> "
27
28for i in ~/.kshrc.d/[0-9]*; do
29    . "$i"
30done