Skip to content

Commit

Permalink
Load Stack's autocompletion
Browse files Browse the repository at this point in the history
Did you know that ZSH can mimic _bash's_ autocompletion?

What a crazy world.
  • Loading branch information
gabebw committed Jan 31, 2016
1 parent 43716a8 commit 07170ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tag-haskell/zsh/haskell.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ fi
# Just type-check the file. Don't compile it.
alias hcompile="ghc -fno-code"

command -v stack > /dev/null && eval "$(stack --bash-completion-script stack)"

new-yesod-project() {
name=$1
stack new "$1" yesod-postgres
Expand Down
1 change: 1 addition & 0 deletions zsh/completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
################
fpath=(~/.zsh/completion-scripts /usr/local/share/zsh/site-functions $fpath)
autoload -U compinit && compinit
autoload -U bashcompinit && bashcompinit

# https://coderwall.com/p/jpj_6q
# Search through history for previous commands matching everything up to current
Expand Down

1 comment on commit 07170ff

@pbrisbin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right!?

Please sign in to comment.