This commit is contained in:
Andrey Parhomenko 2022-11-13 14:23:06 +05:00
parent e87d654067
commit 95f5621ad4
4 changed files with 13 additions and 3 deletions

View file

@ -1,5 +1,7 @@
. $HOME/.shrc . $HOME/.shrc
export PS1='; '
test -r "$LOGIN" && . "$LOGIN" test -r "$LOGIN" && . "$LOGIN"
test -r "$SETENV" && . "$SETENV" && setenv bash test -r "$SETENV" && . "$SETENV" && setenv bash

View file

@ -19,6 +19,7 @@ export_loop(){
export_loop \ export_loop \
ENV '$HOME/.shrc' \ ENV '$HOME/.shrc' \
PROMPT '"; "' \ PROMPT '"; "' \
PS1 '"$PROMPT"' \
SUDO_PROMPT '"#"' \ SUDO_PROMPT '"#"' \
EDITOR 'vi' \ EDITOR 'vi' \
VISUAL 'vi' \ VISUAL 'vi' \

View file

@ -30,6 +30,11 @@ l() {
ls $@ ls $@
} }
cl() {
c $@
l
}
la() { la() {
ls -al $@ ls -al $@
} }
@ -61,7 +66,7 @@ t() {
tree $@ tree $@
} }
PS1=$PROMPT export PS1=$PROMPT
test -r "$LOGIN" && . "$LOGIN" test -r "$LOGIN" && . "$LOGIN"
test -r "$SETENV" && . "$SETENV" && setenv sh test -r "$SETENV" && . "$SETENV" && setenv sh

View file

@ -23,7 +23,9 @@ setopt hist_ignore_space
setopt hist_reduce_blanks setopt hist_reduce_blanks
setopt no_hist_beep setopt no_hist_beep
setopt auto_cd setopt auto_cd
setopt nonomatch
setopt +o nomatch
setopt notify setopt notify
setopt hash_list_all setopt hash_list_all
setopt nohup setopt nohup
@ -31,6 +33,6 @@ setopt nobeep
setopt noglobdots setopt noglobdots
setopt noshwordsplit setopt noshwordsplit
test -r "$LOGIN" && . "$LOGIN" test -r "$LOGIN" && . "$LOGIN"
export PROMPT="%# " export PROMPT="; "
test -r "$SETENV" && . "$SETENV" && setenv zsh test -r "$SETENV" && . "$SETENV" && setenv zsh