Added vi(m) mode support for zsh via ohmyzsh pkg and a custom little hook; new rsync aliases

This commit is contained in:
fedora 2019-05-15 03:24:13 +02:00
parent 99e6c33572
commit 626be522d0
Signed by: wanderer
GPG Key ID: 7B28D8DC28BD2388

@ -8,6 +8,7 @@
# it'll load a random theme each time that oh-my-zsh is loaded. # it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="myowntheme_with_time" ZSH_THEME="myowntheme_with_time"
#ZSH_THEME="spaceship"
# Set list of themes to load # Set list of themes to load
# Setting this variable when ZSH_THEME=random # Setting this variable when ZSH_THEME=random
@ -62,16 +63,21 @@
dnf dnf
systemd systemd
git git
rsync
zsh-autosuggestions zsh-autosuggestions
vi-mode
) )
#history #history
#lol #lol
#python - to be enabled once needed #python - to be enabled once needed
# vi-mode via git clone https://github.com/Nyquase/vi-mode.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/vi-mode
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
# map Del escape sequence to actual Del key in all (n,i) modes to resemble vim instead of vi
bindkey -a '^[[3~' delete-char
# User configuration # User configuration
# export MANPATH="/usr/local/man:$MANPATH" # export MANPATH="/usr/local/man:$MANPATH"
@ -107,7 +113,7 @@
alias free='free -m -l -t' alias free='free -m -l -t'
alias c='clear' alias c='clear'
#alias dnfin='sudo dnf info' --> is dnfp #alias dnfin='sudo dnf info' --> is dnfp
alias hs='history | grep' alias hs='history | grep -i'
alias grep='grep --color=auto' alias grep='grep --color=auto'
alias egrep='egrep --color=auto' alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto' alias fgrep='fgrep --color=auto'
@ -115,11 +121,13 @@
alias rwlan='ip link set wlp3s0 down; ip link set wlp3s0 up' alias rwlan='ip link set wlp3s0 down; ip link set wlp3s0 up'
alias ads='/home/fedora/MEGAsync/utb/2semester/ADS/' alias ads='/home/fedora/MEGAsync/utb/2semester/ADS/'
alias spt='/home/fedora/MEGAsync/utb/2semester/SPT/' alias spt='/home/fedora/MEGAsync/utb/2semester/SPT/'
alias megg='/home/fedora/MEGAsync/'
alias wget='wget -c' # allows to restore progress after interruption alias wget='wget -c' # allows to restore progress after interruption
alias v='vim' # life's too short to type "vim" every time in full alias v='vim' # life's too short to type "vim" every time in full
# https://thejh.net/misc/website-terminal-copy-paste alias vimrc='vim ~/.vim/vimrc'
# ^ this is interesting alias rsync-copy='rsync -avz --progress -h'
alias rsync-move='rsync -avz --progress -h --remove-source-files'
alias rsync-synchronize='rsync -avzu --delete --progress -h'
alias rsync-update='rsync -avzu --progress -h'
export WORKON_HOME=~/utils/venv export WORKON_HOME=~/utils/venv
#source utils/venv/bin/activate #source utils/venv/bin/activate
@ -129,3 +137,5 @@
alias zshist="vim ~/.zsh_history" alias zshist="vim ~/.zsh_history"
# alias ohmyzsh="mate ~/.oh-my-zsh" # alias ohmyzsh="mate ~/.oh-my-zsh"
export DOTNET_CLI_TELEMETRY_OPTOUT=1 # why do I always have to take care of this myself... export DOTNET_CLI_TELEMETRY_OPTOUT=1 # why do I always have to take care of this myself...
#bindkey -v # enabled ohmyzsh vi-mode - more customizable than the original