<commit_before># Push and pop directories on directory stack
alias pu='pushd'
alias po='popd'

# Basic directory operations
alias pwd=' pwd'
# alias .=' pwd'
alias ...='cd ../..'
alias -- -='cd -'

# date
alias now='date +%Y-%m-%d_%H:%M:%S'

# Super user
alias _='sudo'

# Show history
alias history='fc -l 1'

# List direcory contents
alias afind='ack-grep -il'


#Aliases for improved directory listings
#The --color=tty option shows items in different colors according to their type.
#For example, directories are blue, executable files are green, symlinks are cyan, etc.
#The -F option appends a symbol after entries to indicate their types.
#You might not like both options at the same time.
alias ls=' ls -F --color=tty' #regular ls
alias l.=' ls -dF .[a-zA-Z0-9]* --color=tty' #only show dotfiles
alias ll=' ls -lhF --color=tty' #long listing
alias lsa=' ls -lah'
alias la=' ls -A'
alias l=' ls -CF'
alias sl=' ls' # often screw this up

#Make these commands ask before clobbering a file. Use -F to override.
#alias rm="rm -i"
#alias cp="cp -i"
alias mv="mv -i"

#Use human-readable filesizes
alias du="du -hs"
alias df="df -h"

#Miscellaneous
alias j=jobs
alias cd..="cd .." #work around a common typo

#ruby aliases
# alias rdoc="rdoc -N -U -c utf-8 -n README -f html -U"
# alias rdoc_a="rdoc -N -d -c utf-8"

#touch passenger
alias tpass='touch tmp/restart.txt'

#
alias rmsvn='find . -type d -name '.svn' -exec rm -rf {} \;'
alias rmgit='find . -name '.git' -exec rm -rf {} \;'

#administration
alias ports='sudo netstat -pant'

# git
alias gst='git st -sb'

# gvim
# gv() { gvim -f --remote-silent "$@" &; }
gv() { gvim -f "$@" &; }
gvm() { gvim -f -p $(git status --short | awk ' { print $2 } '); }
gvc() { gvim -f -p $(git show "${1:-HEAD}" --name-only --oneline --no-commit-id | sed '$d'); }

alias vu='gvim +BundleInstall! +qall'

# tmux
alias t='tmux new-session -s'
alias htop='TERM=screen htop'

# zsh help
zman() {
  PAGER="less -g -s '+/^       "$1"'" man zshall
}

# cd history
DIRSTACKSIZE=9
DIRSTACKFILE=~/.zdirs
if [[ -f $DIRSTACKFILE ]] && [[ $#dirstack -eq 0 ]]; then
  dirstack=( ${(f)"$(< $DIRSTACKFILE)"} )
  [[ -d $dirstack[1] ]] && cd $dirstack[1] && cd $OLDPWD
fi
chpwd() {
  print -l $PWD ${(u)dirstack} >$DIRSTACKFILE
}

<commit_msg>gvim git aliases<commit_after># Push and pop directories on directory stack
alias pu='pushd'
alias po='popd'

# Basic directory operations
alias pwd=' pwd'
# alias .=' pwd'
alias ...='cd ../..'
alias -- -='cd -'

# date
alias now='date +%Y-%m-%d_%H:%M:%S'

# Super user
alias _='sudo'

# Show history
alias history='fc -l 1'

# List direcory contents
alias afind='ack-grep -il'


#Aliases for improved directory listings
#The --color=tty option shows items in different colors according to their type.
#For example, directories are blue, executable files are green, symlinks are cyan, etc.
#The -F option appends a symbol after entries to indicate their types.
#You might not like both options at the same time.
alias ls=' ls -F --color=tty' #regular ls
alias l.=' ls -dF .[a-zA-Z0-9]* --color=tty' #only show dotfiles
alias ll=' ls -lhF --color=tty' #long listing
alias lsa=' ls -lah'
alias la=' ls -A'
alias l=' ls -CF'
alias sl=' ls' # often screw this up

#Make these commands ask before clobbering a file. Use -F to override.
#alias rm="rm -i"
#alias cp="cp -i"
alias mv="mv -i"

#Use human-readable filesizes
alias du="du -hs"
alias df="df -h"

#Miscellaneous
alias j=jobs
alias cd..="cd .." #work around a common typo

#ruby aliases
# alias rdoc="rdoc -N -U -c utf-8 -n README -f html -U"
# alias rdoc_a="rdoc -N -d -c utf-8"

#touch passenger
alias tpass='touch tmp/restart.txt'

#
alias rmsvn='find . -type d -name '.svn' -exec rm -rf {} \;'
alias rmgit='find . -name '.git' -exec rm -rf {} \;'

#administration
alias ports='sudo netstat -pant'

# git
alias gst='git st -sb'

# gvim
# gv() { gvim -f --remote-silent "$@" &; }
gv() { gvim -f "$@" &; }
gvm() { gvim -f -p $(git status --short | awk ' { print $2 } ') &; }
gvc() { gvim -f -p $(git show "${1:-HEAD}" --name-only --oneline --no-commit-id | sed '$d') &; }

alias vu='gvim +BundleInstall! +qall'

# tmux
alias t='tmux new-session -s'
alias htop='TERM=screen htop'

# zsh help
zman() {
  PAGER="less -g -s '+/^       "$1"'" man zshall
}

# cd history
DIRSTACKSIZE=9
DIRSTACKFILE=~/.zdirs
if [[ -f $DIRSTACKFILE ]] && [[ $#dirstack -eq 0 ]]; then
  dirstack=( ${(f)"$(< $DIRSTACKFILE)"} )
  [[ -d $dirstack[1] ]] && cd $dirstack[1] && cd $OLDPWD
fi
chpwd() {
  print -l $PWD ${(u)dirstack} >$DIRSTACKFILE
}


{'fraction_non_alphanumeric': 0.1813779440898085, 'fraction_numerical': 0.005282852740479859, 'mean_word_length': 3.381870781099325, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '639428', 'n_tokens_mistral': 1835, 'n_tokens_neox': 1762, 'n_words': 614}