Use vi-mode in ZSH and use better cpr/mvr
This commit is contained in:
parent
e232f85349
commit
a40501f314
36
zsh/.zshrc
36
zsh/.zshrc
|
@ -21,6 +21,10 @@ setopt autocd
|
||||||
# to add other keys to this hash, see: man 5 terminfo
|
# to add other keys to this hash, see: man 5 terminfo
|
||||||
typeset -g -A key
|
typeset -g -A key
|
||||||
|
|
||||||
|
# Use vi-mode
|
||||||
|
bindkey -v
|
||||||
|
bindkey jj vi-cmd-mode
|
||||||
|
|
||||||
key[Home]="${terminfo[khome]}"
|
key[Home]="${terminfo[khome]}"
|
||||||
key[End]="${terminfo[kend]}"
|
key[End]="${terminfo[kend]}"
|
||||||
key[Insert]="${terminfo[kich1]}"
|
key[Insert]="${terminfo[kich1]}"
|
||||||
|
@ -104,15 +108,7 @@ source $XDG_CONFIG_HOME/zsh/powerlevel10k/powerlevel10k.zsh-theme
|
||||||
|
|
||||||
unsetopt share_history
|
unsetopt share_history
|
||||||
|
|
||||||
# Compilation flags
|
|
||||||
export ARCHFLAGS="-arch x86_64"
|
|
||||||
|
|
||||||
# ssh
|
|
||||||
export SSH_KEY_PATH="~/.ssh/rsa_id"
|
|
||||||
|
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
|
||||||
BROWSER=/usr/bin/firefox
|
BROWSER=/usr/bin/firefox
|
||||||
export EDITOR=nvim
|
|
||||||
|
|
||||||
# Add bash aliases.
|
# Add bash aliases.
|
||||||
if [ -f ~/.bash_aliases ]; then
|
if [ -f ~/.bash_aliases ]; then
|
||||||
|
@ -127,21 +123,14 @@ export GPULAB_DEV='False'
|
||||||
export SMARTCD_QUIET=1
|
export SMARTCD_QUIET=1
|
||||||
source ~/.smartcd_config
|
source ~/.smartcd_config
|
||||||
|
|
||||||
# CCache
|
|
||||||
# export USE_CCACHE=1
|
|
||||||
#ccache -M 50G
|
|
||||||
|
|
||||||
# CMake GCC colours
|
|
||||||
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||||
|
export EDITOR=nvim
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
|
export ARCHFLAGS="-arch x86_64"
|
||||||
|
export SSH_KEY_PATH="~/.ssh/rsa_id"
|
||||||
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
export TERM="screen-256color"
|
export TERM="screen-256color"
|
||||||
|
|
||||||
# Local python installation
|
|
||||||
export PATH=$HOME/.local/bin:$PATH
|
export PATH=$HOME/.local/bin:$PATH
|
||||||
|
|
||||||
# GO
|
|
||||||
export GOPATH=/tmp/go
|
export GOPATH=/tmp/go
|
||||||
|
|
||||||
# >>> mamba initialize >>>
|
# >>> mamba initialize >>>
|
||||||
|
@ -165,13 +154,6 @@ autoload -Uz add-zsh-hook
|
||||||
|
|
||||||
eval "$(zoxide init zsh --cmd j)"
|
eval "$(zoxide init zsh --cmd j)"
|
||||||
|
|
||||||
function cpr() {
|
|
||||||
rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 "$@"
|
|
||||||
}
|
|
||||||
function mvr() {
|
|
||||||
rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 --remove-source-files "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
function xterm_title_precmd () {
|
function xterm_title_precmd () {
|
||||||
print -Pn -- '\e]2;%n@%m %~\a'
|
print -Pn -- '\e]2;%n@%m %~\a'
|
||||||
}
|
}
|
||||||
|
@ -202,3 +184,5 @@ alias wget=wget --hsts-file="$XDG_DATA_HOME/wget-hsts"
|
||||||
alias xbindkeys="xbindkeys -f $XDG_CONFIG_HOME/xbindkeys/config"
|
alias xbindkeys="xbindkeys -f $XDG_CONFIG_HOME/xbindkeys/config"
|
||||||
alias python=python3
|
alias python=python3
|
||||||
alias r=". ranger"
|
alias r=". ranger"
|
||||||
|
alias cpr=rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1
|
||||||
|
alias mvr=rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 --remove-source-files
|
||||||
|
|
Loading…
Reference in New Issue