zsh: add alias, rust in path, let dups in hist

This commit is contained in:
Mathieu Maret 2021-05-28 12:18:50 +02:00
parent 54066b1119
commit 678030afb2
3 changed files with 5 additions and 2 deletions

View File

@ -12,7 +12,7 @@ setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
#setopt SHARE_HISTORY # Share history between all sessions.
setopt HIST_EXPIRE_DUPS_FIRST # Expire duplicate entries first when trimming history.
setopt HIST_IGNORE_DUPS # Don't record an entry that was just recorded again.
#setopt HIST_IGNORE_DUPS # Don't record an entry that was just recorded again.
setopt HIST_IGNORE_ALL_DUPS # Delete old recorded entry if new entry is a duplicate.
#setopt HIST_FIND_NO_DUPS # Do not display a line previously found.
setopt HIST_IGNORE_SPACE # Don't record an entry starting with a space.

View File

@ -28,4 +28,4 @@ if [[ -z "$BROWSER" ]] ; then
fi
fi
export PATH=$HOME/local/bin:$PATH
export PATH=$HOME/local/bin:$PATH:$HOME/.cargo/bin

View File

@ -25,6 +25,9 @@ alias vimo='vim --servername vimserver --remote-tab'
alias agrep='grep --exclude=.git --exclude-dir=out --exclude-dir=prebuilts --exclude-dir=docs --exclude=tags --exclude=cscope.out'
alias beep='mpv /usr/share/sounds/freedesktop/stereo/complete.oga &> /dev/null &' #sound in package sound-theme-freedesktop
alias gst="vim '+Gedit:' ."
alias lsempty='find . -depth -type d -empty'
alias rmempty='find . -depth -type d -empty -delete'
alias myip="curl -4 icanhazip.com"
#Extension Alias
alias -s html=$BROWSER