From fb71ae7990b53e6683f91ac27ff9ba0b33b9a98e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Uruba?= Date: Fri, 2 Apr 2021 01:21:51 +0200 Subject: [PATCH] add zsh syntax highlighting, move stuff around --- .gitmodules | 3 +++ zsh/.config/zsh/plugins/fast-syntax-highlighting | 1 + zsh/.zprofile | 3 +-- zsh/.zshrc | 5 +++++ 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 zsh/.config/zsh/plugins/fast-syntax-highlighting diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..d1ce691 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "zsh/.config/zsh/plugins/fast-syntax-highlighting"] + path = zsh/.config/zsh/plugins/fast-syntax-highlighting + url = https://github.com/zdharma/fast-syntax-highlighting.git diff --git a/zsh/.config/zsh/plugins/fast-syntax-highlighting b/zsh/.config/zsh/plugins/fast-syntax-highlighting new file mode 160000 index 0000000..a62d721 --- /dev/null +++ b/zsh/.config/zsh/plugins/fast-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit a62d721affc771de2c78201d868d80668a84c1e1 diff --git a/zsh/.zprofile b/zsh/.zprofile index b82ed1a..71dca37 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -7,5 +7,4 @@ export PATH source ~/.config/.env source ~/.config/.env.system - -eval `keychain --eval --quiet --agents ssh,gpg id_rsa` +source "$HOME/.cargo/env" diff --git a/zsh/.zshrc b/zsh/.zshrc index 63b0da9..90b3167 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -25,6 +25,7 @@ PROMPT="%{$fg_bold[yellow]%}%* %{$fg_bold[cyan]%}%d %(?.$fg_bold[green]✓.$fg_b %(3L.$fg_bold[red]%L .)%{$fg_bold[yellow]%}%%%{$reset_color%} " source ~/.config/.aliases +source ~/.config/.aliases.local source $HOME/.config/zsh/key-bindings.zsh @@ -46,3 +47,7 @@ fi if [[ -f ~/.last_dir ]]; then cd $(cat ~/.last_dir) fi + +source ~/.config/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh + +eval `keychain --eval --quiet --agents ssh,gpg id_rsa`