feat(system): configure nano (-FEDSMAGic/max%_T2) as EDITOR, less -RXF as PAGER, add ed/rlwrap/less, and remove vim
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
|
||||
export EDITOR=nano
|
||||
export VISUAL=nano
|
||||
export PAGER="less -RXF"
|
||||
export LESS="-RXF"
|
||||
umask 022
|
||||
|
||||
# use nicer PS1 for bash and busybox ash
|
||||
if [ -n "$BASH_VERSION" -o "$BB_ASH_VERSION" ]; then
|
||||
PS1='\h:\w\$ '
|
||||
# use nicer PS1 for zsh
|
||||
elif [ -n "$ZSH_VERSION" ]; then
|
||||
PS1='%m:%~%# '
|
||||
# set up fallback default PS1
|
||||
else
|
||||
: "${HOSTNAME:=$(hostname)}"
|
||||
PS1='${HOSTNAME%%.*}:$PWD'
|
||||
[ "$(id -u)" -eq 0 ] && PS1="${PS1}# " || PS1="${PS1}\$ "
|
||||
fi
|
||||
|
||||
for script in /etc/profile.d/*.sh ; do
|
||||
if [ -r "$script" ] ; then
|
||||
. "$script"
|
||||
fi
|
||||
done
|
||||
unset script
|
||||
Reference in New Issue
Block a user