mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
added homeshick plugin
This commit is contained in:
parent
96e4e5dd03
commit
0cded54b7f
1 changed files with 19 additions and 0 deletions
19
plugins/homeshick/homeshick.plugin.zsh
Normal file
19
plugins/homeshick/homeshick.plugin.zsh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# first manually install homeshick via:
|
||||
# git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
|
||||
|
||||
# make sure homeshick is available
|
||||
if [ -f $HOME/.homesick/repos/homeshick/homeshick.sh ]; then
|
||||
|
||||
# adding homeshick to path
|
||||
. $HOME/.homesick/repos/homeshick/homeshick.sh
|
||||
|
||||
# enable homeshick zsh completition (see official docs: https://github.com/andsens/homeshick/wiki/Installation#zsh-completion)
|
||||
fpath=($HOME/.homesick/repos/homeshick/completions $fpath)
|
||||
|
||||
# make autocompletition happen (workaround for: https://github.com/andsens/homeshick/issues/89)
|
||||
compinit
|
||||
|
||||
# useful aliases
|
||||
alias hsckl="homeshick pull"
|
||||
fi
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue