Skip to content

Commit

Permalink
fish shell compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alex7kom committed Jul 13, 2015
1 parent 0b45471 commit 2abfe00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Terminal.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

CD_CMD="cd "\\\"$(pwd)\\\""; clear"
CD_CMD="cd "\\\"$(pwd)\\\"" && clear"
if echo "$SHELL" | grep -E "/fish$" &> /dev/null; then
CD_CMD="cd "\\\"$(pwd)\\\""; and clear"
fi
VERSION=$(sw_vers -productVersion)
if (( $(expr $VERSION '<' 10.7.0) )); then
IN_WINDOW="in window 1"
Expand Down
3 changes: 3 additions & 0 deletions iTerm.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

CD_CMD="cd "\\\"$(pwd)\\\"" && clear"
if echo "$SHELL" | grep -E "/fish$" &> /dev/null; then
CD_CMD="cd "\\\"$(pwd)\\\""; and clear"
fi
VERSION=$(sw_vers -productVersion)

if (( $(expr $VERSION '<' 10.7) )); then
Expand Down

0 comments on commit 2abfe00

Please sign in to comment.