aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-12-12 14:11:37 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-12-12 14:11:37 +0000
commit96f745fc011512e38892105f40b1d87b6cd62178 (patch)
tree110b1016cc84474860145a3dc62036306c24774c
parent0cf965636441df355737f5ae3734b5fdc60f6ccd (diff)
downloaddotfiles-96f745fc011512e38892105f40b1d87b6cd62178.tar.gz
dotfiles-96f745fc011512e38892105f40b1d87b6cd62178.zip
Make zsh nicer
-rw-r--r--.gitmodules9
-rw-r--r--zsh/.zsh/export.zsh2
m---------zsh/.zsh/zsh-autosuggestions0
m---------zsh/.zsh/zsh-history-substring-search0
m---------zsh/.zsh/zsh-syntax-highlighting0
-rw-r--r--zsh/.zshrc8
6 files changed, 18 insertions, 1 deletions
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
+Subproject a7f0106b31c2538a36cab30428e6ca65d9a2ae6
diff --git a/zsh/.zsh/zsh-history-substring-search b/zsh/.zsh/zsh-history-substring-search
new file mode 160000
+Subproject 47a7d416c652a109f6e8856081abc042b50125f
diff --git a/zsh/.zsh/zsh-syntax-highlighting b/zsh/.zsh/zsh-syntax-highlighting
new file mode 160000
+Subproject e900ad8bad53501689afcb050456400d7a8466e
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