mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
Add my custom
This commit is contained in:
parent
87f676e29f
commit
93d04724a7
10 changed files with 164 additions and 3 deletions
14
custom/plugins.zsh
Executable file
14
custom/plugins.zsh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
PLUGINS_DIR=$ZSH/plugins
|
||||
source $PLUGINS_DIR/git/git.plugin.zsh
|
||||
source $PLUGINS_DIR/z/z.plugin.zsh
|
||||
|
||||
if [ ! -d "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" ]; then
|
||||
# Take action if $DIR exists. #
|
||||
echo "Installing zsh autosuggestions..."
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||
else
|
||||
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
|
||||
fi
|
||||
|
||||
|
||||
eval "$(gh completion -s zsh)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue