Skip to content

Commit

Permalink
Argument guards for kwm aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
dpoggi committed Feb 20, 2018
1 parent 6f0d668 commit a1fddd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/aliases_Darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,16 @@ fi

if [[ -d "/usr/local/opt/kwm" && -d "/usr/local/opt/khd" ]]; then
kwmctl() {
if (($# == 0)); then
return 1
fi
brew services "$@" koekeishiya/formulae/kwm
}

khdctl() {
if (($# == 0)); then
return 1
fi
brew services "$@" koekeishiya/formulae/khd
}
fi
Expand Down

0 comments on commit a1fddd2

Please sign in to comment.