From 96f745fc011512e38892105f40b1d87b6cd62178 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 12 Dec 2018 14:11:37 +0000 Subject: Make zsh nicer --- .gitmodules | 9 +++++++++ zsh/.zsh/export.zsh | 2 ++ zsh/.zsh/zsh-autosuggestions | 1 + zsh/.zsh/zsh-history-substring-search | 1 + zsh/.zsh/zsh-syntax-highlighting | 1 + zsh/.zshrc | 8 +++++++- 6 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 160000 zsh/.zsh/zsh-autosuggestions create mode 160000 zsh/.zsh/zsh-history-substring-search create mode 160000 zsh/.zsh/zsh-syntax-highlighting diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1f92e82 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,9 @@ +[submodule "zsh/.zsh/zsh-syntax-highlighting"] + path = zsh/.zsh/zsh-syntax-highlighting + url = https://github.com/zsh-users/zsh-syntax-highlighting +[submodule "zsh/.zsh/zsh-history-substring-search"] + path = zsh/.zsh/zsh-history-substring-search + url = https://github.com/zsh-users/zsh-history-substring-search +[submodule "zsh/.zsh/zsh-autosuggestions"] + path = zsh/.zsh/zsh-autosuggestions + url = https://github.com/zsh-users/zsh-autosuggestions diff --git a/zsh/.zsh/export.zsh b/zsh/.zsh/export.zsh index 5049f7d..a5ac697 100644 --- a/zsh/.zsh/export.zsh +++ b/zsh/.zsh/export.zsh @@ -7,3 +7,5 @@ export PATH="${HOME}/.gem/ruby/2.5.0/bin:/usr/local/bin:${PATH}" export PATH="${HOME}/.local/bin:${PATH}" export PATH="/usr/bin:${PATH}" export PATH="${HOME}/.yarn/bin:${PATH}" + +export CDPATH='.:..:../..' diff --git a/zsh/.zsh/zsh-autosuggestions b/zsh/.zsh/zsh-autosuggestions new file mode 160000 index 0000000..a7f0106 --- /dev/null +++ b/zsh/.zsh/zsh-autosuggestions @@ -0,0 +1 @@ +Subproject commit a7f0106b31c2538a36cab30428e6ca65d9a2ae60 diff --git a/zsh/.zsh/zsh-history-substring-search b/zsh/.zsh/zsh-history-substring-search new file mode 160000 index 0000000..47a7d41 --- /dev/null +++ b/zsh/.zsh/zsh-history-substring-search @@ -0,0 +1 @@ +Subproject commit 47a7d416c652a109f6e8856081abc042b50125f4 diff --git a/zsh/.zsh/zsh-syntax-highlighting b/zsh/.zsh/zsh-syntax-highlighting new file mode 160000 index 0000000..e900ad8 --- /dev/null +++ b/zsh/.zsh/zsh-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit e900ad8bad53501689afcb050456400d7a8466e5 diff --git a/zsh/.zshrc b/zsh/.zshrc index 5cd69b5..dbd929c 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -7,7 +7,7 @@ bindkey -e # End of lines configured by zsh-newuser-install # The following lines were added by compinstall -zstyle ':completion:*' completer _expand _complete _ignored _approximate +zstyle ':completion:*' completer _expand _complete _correct _approximate zstyle ':completion:*' list-colors '' zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' zstyle ':completion:*' max-errors 10 @@ -25,3 +25,9 @@ source $HOME/.zsh/export.zsh source $HOME/.zsh/minimal.zsh source $HOME/.zsh/function.zsh source $HOME/.zsh/startup.zsh +source $HOME/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh +source $HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh +bindkey '^[[A' history-substring-search-up +bindkey '^[[B' history-substring-search-down +bindkey -M emacs '^P' history-substring-search-up +bindkey -M emacs '^N' history-substring-search-down -- cgit