Merge pull request #892 from szfcbr/tcsh

Shells: add support for tcsh
This commit is contained in:
Herdiansyah 2018-01-05 12:54:52 +07:00 committed by GitHub
commit 48c970d6e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}"}"