Skip to content

Commit

Permalink
Merge pull request #65 from cmbankester/hotfix/osx-fish-cant-determin…
Browse files Browse the repository at this point in the history
…e-shell

Fixed issue with Fish shell name detection on OSX
  • Loading branch information
jamesob committed May 15, 2016
2 parents 719ac2a + 73307c8 commit 22f4f33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions desk
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ cmd_go() {
# TODESK ($1) may either be
#
# - the name of a desk in $DESKS/
# - a path to a Deskfile
# - a path to a Deskfile
# - a directory containing a Deskfile
# - empty -> `./Deskfile`
#
Expand Down Expand Up @@ -287,8 +287,7 @@ get_running_shell() {
else
# Strip leading dash for login shells.
# If the parent process is a login shell, guess bash.
local CMDLINE_SHELL=$(ps -o pid,args -p $PPID | tail -1 | cut -d' ' -f2 \
| sed -e 's/login/bash/' -e 's/^-//')
local CMDLINE_SHELL=$(ps -o args -p $PPID | tail -1 | sed -e 's/login/bash/' -e 's/^-//')
fi

if [ ! -z "$CMDLINE_SHELL" ]; then
Expand Down

0 comments on commit 22f4f33

Please sign in to comment.