Some more zsh magic

This commit is contained in:
CramMK
2020-06-15 16:01:53 +02:00
parent dc22219223
commit 277c61f181
2 changed files with 24 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ My personal configurations, managed with the 'dotdrop' submodule.
## Features ## Features
+ Distro: `Fedora 31` + Distro: `Fedora 31`
+ Shell: `zsh + oh-my-zsh` + Shell: `zsh`
+ WM: `i3-gaps and i3` + WM: `i3-gaps and i3`
+ Terminal: `xterm` + Terminal: `xterm`
+ Font: `InconsolataLGC Nerd Font Mono (+ Inconsolata for text in polybar)` + Font: `InconsolataLGC Nerd Font Mono (+ Inconsolata for text in polybar)`

View File

@@ -13,11 +13,9 @@ export EDITOR="vim"
export LANG="en_US.UTF-8" export LANG="en_US.UTF-8"
export PATH=$PATH:$HOME/.local/bin export PATH=$PATH:$HOME/.local/bin
## Enable ".."
setopt autocd autopushd
## Aliases ## Aliases
alias vimrc="vim ~/.vimrc" alias vimrc="vim ~/.vimrc"
alias zshrc="vim ~/.zshrc"
alias dotf="cd ~/dotfiles/dotfiles" alias dotf="cd ~/dotfiles/dotfiles"
alias dotdrop="~/dotfiles/dotdrop.sh" --cfg="~/dotfiles/config.yaml" alias dotdrop="~/dotfiles/dotdrop.sh" --cfg="~/dotfiles/config.yaml"
@@ -36,6 +34,15 @@ alias rm='rm -i' # Ask before removal
alias cp='cp -i' # Ask before removal alias cp='cp -i' # Ask before removal
alias mv='mv -i' # Ask before removal alias mv='mv -i' # Ask before removal
alias gaa="git add ."
alias gst="git status"
alias gc="git commit -v"
alias gc!="git commit -v --amend"
alias gl="git pull"
alias gp="git push"
alias glog="git log --oneline --decorate --graph"
## Local Aliases ## Local Aliases
if [ -f ~/.zshrc_local ]; then if [ -f ~/.zshrc_local ]; then
source ~/.zshrc_local source ~/.zshrc_local
@@ -49,6 +56,19 @@ setopt complete_in_word
setopt always_to_end setopt always_to_end
zstyle ':completion:*' menu select zstyle ':completion:*' menu select
# Case Insensitive completion
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
autoload -Uz compinit
for dump in ~/.zcompdump(N.mh+24); do
compinit
done
compinit -C
## Directory navigation
setopt autocd autopushd
## History command configuration ## History command configuration
setopt extended_history # record timestamp of command in HISTFILE setopt extended_history # record timestamp of command in HISTFILE
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE