From: Oleg Broytman Date: Sun, 5 Jun 2016 20:56:29 +0000 (+0300) Subject: .shellrc: micro refactoring - move some code below X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=a7ea8e32b8a41a9cbe685c49d7ff89962ce491db;p=dotfiles.git .shellrc: micro refactoring - move some code below --- diff --git a/.shellrc b/.shellrc index 76f8195..2527547 100644 --- a/.shellrc +++ b/.shellrc @@ -38,10 +38,6 @@ shopt -s checkwinsize #fi -OPS1="$OPS1\\$" -PS1="$OPS1 " - - case "$HOME" in /home/*) if [ -L /home ]; then @@ -53,6 +49,11 @@ case "$HOME" in ;; esac + +OPS1="$OPS1\\$" +PS1="$OPS1 " + + case "$SHELL" in */bash) [ "`type -t ls`" = alias ] && unalias ls