You need to sign in or sign up before continuing.
Commit 82d6e214 authored by Murukesh Mohanan's avatar Murukesh Mohanan

new alias

parent 73dad27c
Subproject commit bbf93b4e5fd63b3a76d2524feec6826b4fad8ee7 Subproject commit 0994d7afe6b021312798f4d884bed6d4f07ac9de
Subproject commit 7d6524e6fbdfa6c3bdd5cf840f6aac0bd39f514d Subproject commit 6b07615a68936a074a04f709a2366d5c27faa762
...@@ -11,8 +11,8 @@ compinit -i ...@@ -11,8 +11,8 @@ compinit -i
# End of lines added by compinstall # End of lines added by compinstall
# Lines configured by zsh-newuser-install # Lines configured by zsh-newuser-install
HISTFILE=~/.histfile HISTFILE=~/.histfile
HISTSIZE=10000 HISTSIZE=100000
SAVEHIST=10000 SAVEHIST=100000
setopt appendhistory autocd extendedglob notify setopt appendhistory autocd extendedglob notify
bindkey -v bindkey -v
# End of lines configured by zsh-newuser-install # End of lines configured by zsh-newuser-install
...@@ -68,7 +68,7 @@ DIRSTACKFILE="$HOME/.cache/zsh/dirs" ...@@ -68,7 +68,7 @@ DIRSTACKFILE="$HOME/.cache/zsh/dirs"
if [[ -f $DIRSTACKFILE ]] && [[ $#dirstack -eq 0 ]]; then if [[ -f $DIRSTACKFILE ]] && [[ $#dirstack -eq 0 ]]; then
dirstack=( ${(f)"$(< $DIRSTACKFILE)"} ) dirstack=( ${(f)"$(< $DIRSTACKFILE)"} )
[[ -d $dirstack[1] ]] && cd $dirstack[1] [[ -z $ITERM_SESSION ]] && [[ -d $dirstack[1] ]] && cd $dirstack[1]
fi fi
chpwd() { chpwd() {
print -l $PWD ${(u)dirstack} >$DIRSTACKFILE print -l $PWD ${(u)dirstack} >$DIRSTACKFILE
...@@ -84,9 +84,6 @@ setopt pushdignoredups ...@@ -84,9 +84,6 @@ setopt pushdignoredups
## This reverts the +/- operators. ## This reverts the +/- operators.
setopt pushdminus setopt pushdminus
export DEBEMAIL="murukesh@cse.iitb.ac.in"
export DEBFULLNAME="Murukesh Mohanan"
# Add an "alert" alias for long running commands. Use like so: # Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert # sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
...@@ -145,7 +142,7 @@ autoload run-help-git ...@@ -145,7 +142,7 @@ autoload run-help-git
alias help=run-help alias help=run-help
ssht () { ssht () {
ssh -Xt "$@" '$SHELL -lc byobu' ssh -Xt "$@" '$SHELL -lic byobu'
} }
# pip zsh completion start # pip zsh completion start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment