diff --git a/.gitmodules b/.gitmodules index 9777e68..a21ce25 100644 --- a/.gitmodules +++ b/.gitmodules @@ -52,3 +52,12 @@ [submodule "vim/start/vim-polyglot"] path = vim/start/vim-polyglot url = https://github.com/sheerun/vim-polyglot.git +[submodule "zsh/zsh-autosuggestions"] + path = zsh/zsh-autosuggestions + url = https://github.com/zsh-users/zsh-autosuggestions.git +[submodule "zsh/zsh-syntax-highlighting"] + path = zsh/zsh-syntax-highlighting + url = https://github.com/zsh-users/zsh-syntax-highlighting.git +[submodule "zsh/oh-my-zsh"] + path = zsh/oh-my-zsh + url = https://github.com/ohmyzsh/ohmyzsh.git diff --git a/install.conf.yaml b/install.conf.yaml index d785790..34614b3 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -56,6 +56,10 @@ ~/.wgetrc: wget/wgetrc ~/.config/yay/config.json: yay/config.json ~/.Xresources: i3/Xresources + ~/.zshrc: zsh/zshrc + ~/.oh-my-zsh: zsh/oh-my-zsh + ~/.zsh-syntax-highlighting: zsh/zsh-syntax-highlighting + ~/.zsh-autosuggestions: zsh/zsh-autosuggestions # graphic - link: diff --git a/zsh/oh-my-zsh b/zsh/oh-my-zsh new file mode 160000 index 0000000..35068db --- /dev/null +++ b/zsh/oh-my-zsh @@ -0,0 +1 @@ +Subproject commit 35068db8373917a23eb9e3dabeb6596348e6534c diff --git a/zsh/zsh-autosuggestions b/zsh/zsh-autosuggestions new file mode 160000 index 0000000..85919cd --- /dev/null +++ b/zsh/zsh-autosuggestions @@ -0,0 +1 @@ +Subproject commit 85919cd1ffa7d2d5412f6d3fe437ebdbeeec4fc5 diff --git a/zsh/zsh-syntax-highlighting b/zsh/zsh-syntax-highlighting new file mode 160000 index 0000000..5eb677b --- /dev/null +++ b/zsh/zsh-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit 5eb677bb0fa9a3e60f0eff031dc13926e093df92 diff --git a/zsh/zshrc b/zsh/zshrc new file mode 100644 index 0000000..ccf96a7 --- /dev/null +++ b/zsh/zshrc @@ -0,0 +1,39 @@ +# Path to your oh-my-zsh installation. +export ZSH=~/.oh-my-zsh +fpath=( ~/.zcomplete "${fpath[@]}" ) + +ZSH_THEME="" + +CASE_SENSITIVE="true" +DISABLE_AUTO_UPDATE="true" +DISABLE_LS_COLORS="false" +DISABLE_AUTO_TITLE="true" +ENABLE_CORRECTION="false" +COMPLETION_WAITING_DOTS="true" +DISABLE_UNTRACKED_FILES_DIRTY="true" +HIST_STAMPS="yyyy-mm-dd" +# Would you like to use another custom folder than $ZSH/custom? +# ZSH_CUSTOM=/path/to/new-custom-folder +plugins=( + colored-man-pages + common-aliases + sudo +) +source $ZSH/oh-my-zsh.sh + +alias reload=". ~/.zshrc" + +ZSH_AUTOSUGGEST_STRATEGY=(history) +source ~/.zsh-autosuggestions/zsh-autosuggestions.zsh +# Ctrl+Space +bindkey '^ ' autosuggest-accept + +source ~/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +source ~/.profile.d/load + +if type kubectl &>/dev/null; then + source <(kubectl completion zsh) +fi + +RPROMPT='[%*]'