blob: cd372c4cb1e04fd47c92780174c42ce0bafb9bd0 (
plain)
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
|
# zachir's ksh config
[ -f /etc/ksh.kshrc ] && . /etc/ksh.kshrc
[ -f $HOME/.config/sh/aliases ] && . $HOME/.config/sh/aliases
[ -f $HOME/.config/sh/functions ] && . $HOME/.config/sh/functions
RED="\033[1;31m"
GRE="\033[1;32m"
YEL="\033[1;33m"
BLU="\033[1;34m"
PUR="\033[1;35m"
CYA="\033[1;36m"
CLR="\033[1;0m"
[ -f "$XDG_CONFIG_HOME"/sh/aliases ] && . "$XDG_CONFIG_HOME"/sh/aliases
[ -f "$XDG_CONFIG_HOME"/sh/functions ] && . "$XDG_CONFIG_HOME"/sh/functions
case "$-" in
*i*) # we are interactive
# we may have su'ed so reset these
HOSTNAME=${HOSTNAME:-$(uname -n)}
HOST=${HOSTNAME%%.*}
#PROMPT="$USER:!$PS1S"
#PROMPT="<$USER@$HOST:!>$PS1S"
case "$USER" in
"root") COLOR='\e[1;31m' ;;
"git") COLOR='\e[1;32m' ;;
"zachir") COLOR='\e[1;36m' ;;
esac
PROMPT="$COLOR"'[\u@\h]:\e[0m\w'"$COLOR"'\$ \e[0m'
PS1=$PROMPT
set -o vi
;;
esac
|