Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e18474d56b | ||
![]() |
45678c7037 | ||
![]() |
92bc3d7f21 |
15
.zimrc
Normal file
15
.zimrc
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
zmodule jreese/zsh-titles
|
||||||
|
|
||||||
|
zmodule SmartFinn/fzf-widgets
|
||||||
|
zmodule crater2150-zsh/conf
|
||||||
|
zmodule crater2150-zsh/chroma-z
|
||||||
|
|
||||||
|
zmodule $ZDOTDIR/plugins/tmpsrc
|
||||||
|
zmodule $ZDOTDIR/plugins/pyenv
|
||||||
|
|
||||||
|
zmodule $ZDOTDIR/plugins/highlight-config
|
||||||
|
zmodule zsh-users/zsh-syntax-highlighting
|
||||||
|
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/ng
|
||||||
|
|
||||||
|
zmodule urbainvaes/fzf-marks
|
|
@ -258,6 +258,8 @@ alias -g T="| tail"
|
||||||
alias -g XS='$(xclip -o -selection primary)'
|
alias -g XS='$(xclip -o -selection primary)'
|
||||||
alias -g XC='$(xclip -o -selection clipboard)'
|
alias -g XC='$(xclip -o -selection clipboard)'
|
||||||
|
|
||||||
|
alias -g GITROOT='$(git rev-parse --show-toplevel)'
|
||||||
|
|
||||||
alias -s log=vimpager
|
alias -s log=vimpager
|
||||||
#}}}
|
#}}}
|
||||||
|
|
||||||
|
|
15
bindings.zsh
15
bindings.zsh
|
@ -92,3 +92,18 @@ fi
|
||||||
zle-venv() { zle push-line; BUFFER="venv"; zle accept-line }
|
zle-venv() { zle push-line; BUFFER="venv"; zle accept-line }
|
||||||
zle -N zle-venv
|
zle -N zle-venv
|
||||||
bindkey "\ev" zle-venv
|
bindkey "\ev" zle-venv
|
||||||
|
|
||||||
|
# Map widgets to key
|
||||||
|
bindkey "\ec" fzf-change-directory
|
||||||
|
bindkey "^r" fzf-insert-history
|
||||||
|
bindkey "^xf" fzf-insert-files
|
||||||
|
bindkey "^xd" fzf-insert-directory
|
||||||
|
bindkey "^xn" fzf-insert-named-directory
|
||||||
|
|
||||||
|
FZF_CHANGE_DIR_FIND_COMMAND="fd -t d"
|
||||||
|
FZF_INSERT_DIR_COMMAND="fd -t d"
|
||||||
|
FZF_INSERT_FILES_COMMAND="fd -t f"
|
||||||
|
FZF_EDIT_FILES_COMMAND="fd -t f"
|
||||||
|
|
||||||
|
# modify history command to remove duplicates
|
||||||
|
FZF_HISTORY_COMMAND="fc -l 1 | sed 's/ *[0-9]* //g' | awk '!seen[\$0]++'"
|
||||||
|
|
2
dirs
2
dirs
|
@ -1 +1,3 @@
|
||||||
m=/run/media/$USER/
|
m=/run/media/$USER/
|
||||||
|
j=${XDG_DATA_HOME}/jails
|
||||||
|
rc=${j}/webapp-rocketchat/Downloads
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
typeset -gA ZSH_HIGHLIGHT_STYLES
|
||||||
|
|
||||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
|
||||||
|
|
||||||
if [[ "`tput colors`" == "256" ]] || [[ "`tput colors`" == "88" ]] ; then
|
if [[ "`tput colors`" == "256" ]] || [[ "`tput colors`" == "88" ]] ; then
|
||||||
|
|
1
zplug
1
zplug
|
@ -1 +0,0 @@
|
||||||
Subproject commit 18cfcd4f761eceaf2ca63a291d11782d0f8b590e
|
|
17
zshrc
17
zshrc
|
@ -1,3 +1,5 @@
|
||||||
|
typeset -U path
|
||||||
|
|
||||||
HISTFILE=~/.histfile
|
HISTFILE=~/.histfile
|
||||||
HISTSIZE=100000
|
HISTSIZE=100000
|
||||||
SAVEHIST=100000
|
SAVEHIST=100000
|
||||||
|
@ -55,9 +57,20 @@ function(){
|
||||||
try-source $(zdotfile dirs)
|
try-source $(zdotfile dirs)
|
||||||
}
|
}
|
||||||
|
|
||||||
. $(zdotfile completion.zsh)
|
|
||||||
|
|
||||||
source $(zdotfile zplug.zsh)
|
ZIM_HOME=${XDG_CACHE_HOME:-$HOME/.cache}/zim
|
||||||
|
if [[ ! -e ${ZIM_HOME}/zimfw.zsh ]]; then
|
||||||
|
curl -fsSL --create-dirs -o ${ZIM_HOME}/zimfw.zsh \
|
||||||
|
https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
|
||||||
|
fi
|
||||||
|
if [[ ! ${ZIM_HOME}/init.zsh -nt ${ZDOTDIR:-${HOME}}/.zimrc ]]; then
|
||||||
|
source ${ZIM_HOME}/zimfw.zsh init -q
|
||||||
|
fi
|
||||||
|
source ${ZIM_HOME}/init.zsh
|
||||||
|
|
||||||
|
|
||||||
|
. $(zdotfile completion.zsh)
|
||||||
|
#source $(zdotfile zplug.zsh)
|
||||||
|
|
||||||
. $(zdotfile bindings.zsh)
|
. $(zdotfile bindings.zsh)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue