More cleanups of shell login files
This commit is contained in:
parent
829c67ab1b
commit
cbb0e7118b
6 changed files with 15 additions and 22 deletions
|
@ -5,3 +5,8 @@ then
|
|||
fi
|
||||
|
||||
export BASH_ENV="$HOME/.bashrc"
|
||||
|
||||
if [ -r "$HOME/.bashrc" ]
|
||||
then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
|
|
|
@ -19,8 +19,3 @@ bind 'set bell-style none'
|
|||
bind 'set completion-ignore-case on'
|
||||
bind 'set enable-bracketed-paste off'
|
||||
export PS1="\[\033[01m\]\u@\h\\$\[\033[00m\] "
|
||||
|
||||
if [ -r "$HOME/.shrc" ]
|
||||
then
|
||||
. "$HOME/.shrc"
|
||||
fi
|
||||
|
|
|
@ -48,3 +48,8 @@ if [ -r "$HOME/.profile.$(hostname -s)" ]
|
|||
then
|
||||
. "$HOME/.profile.$(hostname -s)"
|
||||
fi
|
||||
|
||||
if [ -r "$HOME/.shrc" ]
|
||||
then
|
||||
. "$HOME/.shrc"
|
||||
fi
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
#!/bin/sh
|
||||
if [ -n "$_acp_shrc_loaded" ]
|
||||
then
|
||||
return 1
|
||||
fi
|
||||
export _acp_shrc_loaded=1
|
||||
|
||||
case "$-" in
|
||||
*i*)
|
||||
;;
|
||||
|
@ -201,12 +195,6 @@ then
|
|||
fi
|
||||
|
||||
usermotd () {
|
||||
if [ -n "$_acp_motd_shown" ]
|
||||
then
|
||||
return 1
|
||||
fi
|
||||
export _acp_motd_shown=1
|
||||
|
||||
# OS (kernel) name and version in reverse video.
|
||||
printf "\033[7m$(uname -sr)\033[0m\n"
|
||||
|
||||
|
|
|
@ -3,3 +3,8 @@ if [ -r "$HOME/.profile" ]
|
|||
then
|
||||
emulate sh -c '. "$HOME/.profile"'
|
||||
fi
|
||||
|
||||
if [ -r "$HOME/.zshrc" ]
|
||||
then
|
||||
. "$HOME/.zshrc"
|
||||
fi
|
||||
|
|
|
@ -21,8 +21,3 @@ bindkey "^[OA" history-beginning-search-backward
|
|||
bindkey "^[OB" history-beginning-search-forward
|
||||
|
||||
export PS1="%B%n@%m%#%b "
|
||||
|
||||
if [ -r "$HOME/.shrc" ]
|
||||
then
|
||||
emulate sh -c '. "$HOME/.shrc"'
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue