Shells: add support for tcsh

This commit is contained in:
szfcbr 2018-01-05 06:32:14 +01:00
parent d2f0255327
commit 6c3b0136de
1 changed files with 4 additions and 0 deletions

View File

@ -640,6 +640,10 @@ get_shell() {
shell="${shell/version}"
;;
"tcsh")
shell+="$("$SHELL" -c 'printf "%s" "$tcsh"')"
;;
*)
shell+="$("$SHELL" --version 2>&1)"
shell="${shell/ "${shell_name}"}"