Skip to content

Commit

Permalink
this should be it
Browse files Browse the repository at this point in the history
  • Loading branch information
PureArtistry committed Mar 1, 2021
1 parent c4ca5da commit 0e2a4af
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tuxi
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ MAIN_PID="$$"
##### macOS compatibility #####
#########################################

sed() {
[ "$OSTYPE" = 'darwin'* ] && gsed "$@" || $(whereis sed | awk '{print $2}') "$@"
}
paste() {
[ "$OSTYPE" = 'darwin'* ] && gpaste "$@" || $(whereis paste | awk '{print $2}') "$@"
}
# credit to @Zhann in #149

if [ "$OSTYPE" = 'darwin'* ]; then
sed() {
gsed "$@"
}
paste() {
gpaste "$@"
}
fi

######################################
##### Snippet priority #####
Expand Down

0 comments on commit 0e2a4af

Please sign in to comment.