More cleanups of shell login files

This commit is contained in:
Anthony Rose 2022-09-08 10:49:03 +01:00
parent 829c67ab1b
commit cbb0e7118b
6 changed files with 15 additions and 22 deletions

View file

@ -5,3 +5,8 @@ then
fi fi
export BASH_ENV="$HOME/.bashrc" export BASH_ENV="$HOME/.bashrc"
if [ -r "$HOME/.bashrc" ]
then
. "$HOME/.bashrc"
fi

View file

@ -19,8 +19,3 @@ bind 'set bell-style none'
bind 'set completion-ignore-case on' bind 'set completion-ignore-case on'
bind 'set enable-bracketed-paste off' bind 'set enable-bracketed-paste off'
export PS1="\[\033[01m\]\u@\h\\$\[\033[00m\] " export PS1="\[\033[01m\]\u@\h\\$\[\033[00m\] "
if [ -r "$HOME/.shrc" ]
then
. "$HOME/.shrc"
fi

View file

@ -48,3 +48,8 @@ if [ -r "$HOME/.profile.$(hostname -s)" ]
then then
. "$HOME/.profile.$(hostname -s)" . "$HOME/.profile.$(hostname -s)"
fi fi
if [ -r "$HOME/.shrc" ]
then
. "$HOME/.shrc"
fi

View file

@ -1,10 +1,4 @@
#!/bin/sh #!/bin/sh
if [ -n "$_acp_shrc_loaded" ]
then
return 1
fi
export _acp_shrc_loaded=1
case "$-" in case "$-" in
*i*) *i*)
;; ;;
@ -201,12 +195,6 @@ then
fi fi
usermotd () { usermotd () {
if [ -n "$_acp_motd_shown" ]
then
return 1
fi
export _acp_motd_shown=1
# OS (kernel) name and version in reverse video. # OS (kernel) name and version in reverse video.
printf "\033[7m$(uname -sr)\033[0m\n" printf "\033[7m$(uname -sr)\033[0m\n"

View file

@ -3,3 +3,8 @@ if [ -r "$HOME/.profile" ]
then then
emulate sh -c '. "$HOME/.profile"' emulate sh -c '. "$HOME/.profile"'
fi fi
if [ -r "$HOME/.zshrc" ]
then
. "$HOME/.zshrc"
fi

View file

@ -21,8 +21,3 @@ bindkey "^[OA" history-beginning-search-backward
bindkey "^[OB" history-beginning-search-forward bindkey "^[OB" history-beginning-search-forward
export PS1="%B%n@%m%#%b " export PS1="%B%n@%m%#%b "
if [ -r "$HOME/.shrc" ]
then
emulate sh -c '. "$HOME/.shrc"'
fi