2
0
mirror of https://github.com/spritsail/alpine.git synced 2024-12-20 11:34:36 +00:00
alpine/skel/etc/profile

23 lines
518 B
Plaintext
Raw Normal View History

2018-08-31 00:11:35 +00:00
export PAGER='/usr/bin/less'
export EDITOR='/usr/bin/vi'
2018-08-31 14:30:09 +00:00
export PS1='\e[1;36m\u@\h\e[0m \e[0;32m$(pwd | sed -E '"'s@^'\$HOME'@~@;s@(.*)/@\\1%#@;s@((^|/)\\.?[^/%]{1})[^/%]*@\\1@g;s@(.*)%#@\\1/@')"'\e[0m> '
2018-04-17 11:22:52 +00:00
# Source configuration files from /etc/profile.d
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
unset i
done
# Common interactive aliases
alias ls='ls --color=auto -Fh'
alias ll='ls -l'
alias la='ls -la'
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
alias md='mkdir'
2018-07-03 19:44:07 +00:00
alias rd='rmdir'