X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=e3a0ac7a01c1931230de2926692c7c45ced715fe;hb=37eec285330d0072c8095e64631b4ad8f0c92d26;hp=3e238bd5546ca21863eae260caee660686c47598;hpb=9c24f5210ec5ebca94688aa195a1ee6a07d7d0e5;p=dotfiles.git diff --git a/.shellrc b/.shellrc index 3e238bd..e3a0ac7 100644 --- a/.shellrc +++ b/.shellrc @@ -44,16 +44,6 @@ if test -n "$KSH_VERSION" -o -n "$FCEDIT"; then j() { jobs; } fi -if test -n "$BASH_VERSION"; then - if [ -r "$HOME"/admin/prog/bash_prompt ]; then - . "$HOME"/admin/prog/bash_prompt - set_prompt - unset set_prompt - else - PS1="${debian_chroot:+($debian_chroot)}\u@\h:\W \$SHLVL\\$ " - fi -fi - # clear screen and history, logout chlo() { clear; cd; >$HISTFILE; unset HISTFILE; history -c; logout || exit; } @@ -168,13 +158,13 @@ fi vim() { command vim "$@" rc=$? - cd "`cat \"$HOME/tmp/vim/cwd\"`" && rm "$HOME/tmp/vim/cwd" && + cd "`cat \"$HOME/tmp/vim/cwd\"`" && /bin/rm "$HOME/tmp/vim/cwd" && return $rc } if [ "$SHLVL" -eq 1 ] && which startx >/dev/null 2>&1; then - X() { startx >> .Xserver.log 2>&1; cyr; rm -f .Xauthority; } + X() { startx >> .Xserver.log 2>&1; cyr; /bin/rm -f .Xauthority; } fi x() { exit; }