Add zsh/oh my zsh/w10k
This commit is contained in:
9
zsh/.oh-my-zsh/plugins/heroku/README.md
Normal file
9
zsh/.oh-my-zsh/plugins/heroku/README.md
Normal file
@ -0,0 +1,9 @@
|
||||
# Heroku
|
||||
|
||||
This plugin provides completion for the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli).
|
||||
|
||||
To use it add heroku to the plugins array in your zshrc file:
|
||||
|
||||
```bash
|
||||
plugins=(... heroku)
|
||||
```
|
9
zsh/.oh-my-zsh/plugins/heroku/heroku.plugin.zsh
Normal file
9
zsh/.oh-my-zsh/plugins/heroku/heroku.plugin.zsh
Normal file
@ -0,0 +1,9 @@
|
||||
HEROKU_AC_CACHE_DIR="$HOME/.cache"
|
||||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
HEROKU_AC_CACHE_DIR="$HOME/Library/Caches"
|
||||
fi
|
||||
if [ ! -z "$XDG_CACHE_HOME" ]; then
|
||||
HEROKU_AC_CACHE_DIR="$XDG_CACHE_DIR"
|
||||
fi
|
||||
HEROKU_AC_ZSH_SETUP_PATH=$HEROKU_AC_CACHE_DIR/heroku/autocomplete/zsh_setup
|
||||
[ -f $HEROKU_AC_ZSH_SETUP_PATH ] && source $HEROKU_AC_ZSH_SETUP_PATH
|
Reference in New Issue
Block a user