Loading .shell/funcs +9 −2 Original line number Diff line number Diff line Loading @@ -53,6 +53,13 @@ manage_path() eval $var="'${pre:+$pre:}$val${post:+:$post}'" } get_shell() { if [ -n "$ZSH_NAME" ]; then echo zsh; return; fi if [ -n "$BASH" ]; then echo bash; return; fi echo sh } do_update() { local timestamp=${HOME}/.shell/.update Loading @@ -66,8 +73,8 @@ do_update() touch "$timestamp" case $0 in *zsh) read "?$prompt" ans ;; case `get_shell` in zsh) read "?$prompt" ans ;; *) read -p "$prompt" ans ;; esac case "$ans" in Loading Loading
.shell/funcs +9 −2 Original line number Diff line number Diff line Loading @@ -53,6 +53,13 @@ manage_path() eval $var="'${pre:+$pre:}$val${post:+:$post}'" } get_shell() { if [ -n "$ZSH_NAME" ]; then echo zsh; return; fi if [ -n "$BASH" ]; then echo bash; return; fi echo sh } do_update() { local timestamp=${HOME}/.shell/.update Loading @@ -66,8 +73,8 @@ do_update() touch "$timestamp" case $0 in *zsh) read "?$prompt" ans ;; case `get_shell` in zsh) read "?$prompt" ans ;; *) read -p "$prompt" ans ;; esac case "$ans" in Loading