zsh-autoquoter
This commit is contained in:
parent
34a61fe1f9
commit
9d19d81a6f
|
@ -4,3 +4,6 @@
|
||||||
[submodule "nvchad-custom"]
|
[submodule "nvchad-custom"]
|
||||||
path = .custon/nvim/lua/custom
|
path = .custon/nvim/lua/custom
|
||||||
url = https://git.cscherr.de/PlexSheep/nvchad-custom
|
url = https://git.cscherr.de/PlexSheep/nvchad-custom
|
||||||
|
[submodule ".zsh/plugins/zsh-autoquoter"]
|
||||||
|
path = .zsh/plugins/zsh-autoquoter
|
||||||
|
url = https://github.com/ianthehenry/zsh-autoquoter
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 9e3b1b216bf7b61a9807a242bae730b5fc232a44
|
10
.zshrc
10
.zshrc
|
@ -58,7 +58,10 @@ function condac() {
|
||||||
conda activate $@
|
conda activate $@
|
||||||
export HOST=$(hostname)
|
export HOST=$(hostname)
|
||||||
}
|
}
|
||||||
# TODO: make neorg a function, take a workspace as arg
|
# calculate on shell with `c 1+1`
|
||||||
|
function c() { printf "%s\n" "$@" | bc -l; }
|
||||||
|
# call python in a print from args
|
||||||
|
function py() { python -c "from math import *; print($*)" }
|
||||||
|
|
||||||
### ---- zsh options -------------------------------------
|
### ---- zsh options -------------------------------------
|
||||||
setopt autocd
|
setopt autocd
|
||||||
|
@ -177,10 +180,15 @@ fi
|
||||||
### ---- PLUGINS -----------------------------------
|
### ---- PLUGINS -----------------------------------
|
||||||
source $ZSH/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
source $ZSH/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
||||||
source $ZSH/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source $ZSH/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
source $ZSH/plugins/zsh-autoquoter/zsh-autoquoter.zsh
|
||||||
|
ZSH_HIGHLIGHT_HIGHLIGHTERS+=(zaq)
|
||||||
source ~/.local/share/fzf/key-bindings.zsh
|
source ~/.local/share/fzf/key-bindings.zsh
|
||||||
source ~/.local/share/fzf/completion.zsh
|
source ~/.local/share/fzf/completion.zsh
|
||||||
fpath=($ZSH/plugins/zsh-completions/src $fpath)
|
fpath=($ZSH/plugins/zsh-completions/src $fpath)
|
||||||
|
|
||||||
|
ZAQ_PREFIXES+=('git commit( [^ ]##)# -[^ -]#m')
|
||||||
|
ZAQ_PREFIXES_GREEDY+=('py #')
|
||||||
|
|
||||||
### --- fzf Config ------------------------------------
|
### --- fzf Config ------------------------------------
|
||||||
export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
|
export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
|
||||||
export FZF_CTRL_R_OPTS='--no-sort --exact'
|
export FZF_CTRL_R_OPTS='--no-sort --exact'
|
||||||
|
|
Loading…
Reference in New Issue