Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Suppress find errors if local repo doesn't exist

  • Loading branch information...
commit ab6ec16993b6013e85543f885a1cb1099e4e9043 1 parent 9809dc8
Simon Whitaker authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 gibo-completion.zsh
View
5 gibo-completion.zsh
@@ -23,6 +23,9 @@
_gibo()
{
- compadd $( find $HOME/.gitignore-boilerplates -name "*.gitignore" -exec basename \{\} .gitignore \; )
+ local_repo="$HOME/.gitignore-boilerplates"
+ if [ -e "$local_repo" ]; then
+ compadd $( find "$local_repo" -name "*.gitignore" -exec basename \{\} .gitignore \; )
+ fi
}
compdef _gibo gibo
Please sign in to comment.
Something went wrong with that request. Please try again.