<commit_before>alias -g A='~/.oh-my-zsh/custom/aliases.zsh'
alias -g B='| pbcopy'
alias -g G='| grep -i'
alias -g GPG='EAE40466'
alias -g H='--help'
alias -g L='| less'
alias -g V='--version'
alias -g Z='~/.zshrc'
alias a="vim ~/.oh-my-zsh/custom/aliases.zsh"
alias b='pbcopy'
alias cdp='cdproject'
alias d='dirs -v | head -10 | tac'
alias df='df -h'
alias ds='ds -sh'
alias du='du -h'
alias f='ffind'
alias fab='nocorrect fab'
alias ffind='nocorrect ffind'
alias find='sudo find'

alias g='git'
alias ga='git add'
alias gaa='git add -A'
alias gb='git branch'
alias gba='git branch -a'
alias gc='git commit -v'
alias gca='git commit -va'
alias gco='git checkout'
alias gcv='git commit -v'
alias gd='git diff'
alias gf='git fetch'
alias gfa='git fetch --all'
alias gl='git pull'
alias gp='git push'
alias grv='git remote --verbose'
alias gs='git status'
alias gstp='git stash pop'

alias ipy='ipython'
alias ipn="ipython notebook --pprint --pylab inline"
alias ks='ls'
alias la='ls -la'
alias ll='ls -lG'
alias lls='ls'
alias ls='ls -G --color'
alias mdkir='mkdir'
alias mkae='make'
alias o='open'
alias oepn='open'
alias p='python'
alias pyhton='python'
alias r='ranger'
alias s='sag'
alias sl='ls'
alias t='$(which todo.sh) -d ~/.todo.cfg'
alias v='vim'
alias wo='workon'

# git stash list, navigate with `Q`
gstl () {
    git stash list | awk -F: '{
        system("git -c color.ui=always stash show -p " $1); }'
}

# cd to python package source
cdpy () {
  cd "$(python -c "import os.path as _, ${1}; \
          print _.dirname(_.realpath(${1}.__file__[:-1]))"
        )"
}

# history and hpg united
h () {
    if [[ $# -eq 0 ]] ; then
        history
    else
        history | egrep "$@"
    fi
}

# undo GIT merge
undo_merge () {
    git reset --merge ORIG_HEAD
}
alias git_undo_merge=undo_merge

# change profile dynamically
dark () {
    echo -e "\033]50;SetProfile=Dark\a"
    export DARK=1
    echo "dark" > ~/.colorscheme
}

# change profile dynamically
light () {
    echo -e "\033]50;SetProfile=Default\a"
    unset DARK
    echo "light" > ~/.colorscheme
}

alias git_undo_merge='git reset --merge ORIG_HEAD'

src () {
    # given a github url "<author>/<package>", clone and cd into ~/src
    args=$@
    name=$(echo $args | cut -d '/' -f 2)  # take the second half of argument
    cd ~/src
    git clone "git@github.com:$args.git"
    cd $name
}

wi () {
    tab-color 255 100 200
    vim ~/Personal/vimwiki/index.wiki
}

ypaste () {
    curl -u kstytsenko:$(pass yelster/ldap) -d private=1 --data-urlencode text@- https://paste2.yelsterdigital.com/api/create
}<commit_msg>Add colors-tmux function<commit_after>alias -g A='~/.oh-my-zsh/custom/aliases.zsh'
alias -g B='| pbcopy'
alias -g G='| grep -i'
alias -g GPG='EAE40466'
alias -g H='--help'
alias -g L='| less'
alias -g V='--version'
alias -g Z='~/.zshrc'
alias a="vim ~/.oh-my-zsh/custom/aliases.zsh"
alias b='pbcopy'
alias cdp='cdproject'
alias d='dirs -v | head -10 | tac'
alias df='df -h'
alias ds='ds -sh'
alias du='du -h'
alias f='ffind'
alias fab='nocorrect fab'
alias ffind='nocorrect ffind'
alias find='sudo find'

alias g='git'
alias ga='git add'
alias gaa='git add -A'
alias gb='git branch'
alias gba='git branch -a'
alias gc='git commit -v'
alias gca='git commit -va'
alias gco='git checkout'
alias gcv='git commit -v'
alias gd='git diff'
alias gf='git fetch'
alias gfa='git fetch --all'
alias gl='git pull'
alias gp='git push'
alias grv='git remote --verbose'
alias gs='git status'
alias gstp='git stash pop'

alias ipy='ipython'
alias ipn="ipython notebook --pprint --pylab inline"
alias ks='ls'
alias la='ls -la'
alias ll='ls -lG'
alias lls='ls'
alias ls='ls -G --color'
alias mdkir='mkdir'
alias mkae='make'
alias o='open'
alias oepn='open'
alias p='python'
alias pyhton='python'
alias r='ranger'
alias s='sag'
alias sl='ls'
alias t='$(which todo.sh) -d ~/.todo.cfg'
alias v='vim'
alias wo='workon'

# git stash list, navigate with `Q`
gstl () {
    git stash list | awk -F: '{
        system("git -c color.ui=always stash show -p " $1); }'
}

# cd to python package source
cdpy () {
  cd "$(python -c "import os.path as _, ${1}; \
          print _.dirname(_.realpath(${1}.__file__[:-1]))"
        )"
}

# history and hpg united
h () {
    if [[ $# -eq 0 ]] ; then
        history
    else
        history | egrep "$@"
    fi
}

# undo GIT merge
undo_merge () {
    git reset --merge ORIG_HEAD
}
alias git_undo_merge=undo_merge

# change profile dynamically
dark () {
    echo -e "\033]50;SetProfile=Dark\a"
    export DARK=1
    echo "dark" > ~/.colorscheme
}

# change profile dynamically
light () {
    echo -e "\033]50;SetProfile=Default\a"
    unset DARK
    echo "light" > ~/.colorscheme
}

alias git_undo_merge='git reset --merge ORIG_HEAD'

src () {
    # given a github url "<author>/<package>", clone and cd into ~/src
    args=$@
    name=$(echo $args | cut -d '/' -f 2)  # take the second half of argument
    cd ~/src
    git clone "<EMAIL>:$args.git"
    cd $name
}

wi () {
    tab-color 255 100 200
    vim ~/Personal/vimwiki/index.wiki
}

ypaste () {
    curl -u kstytsenko:$(pass yelster/ldap) -d private=1 --data-urlencode text@- https://paste2.yelsterdigital.com/api/create
}

colors-tmux () {
    for i in {0..255} ; do
        printf "\x1b[38;5;${i}mcolour${i}\n"
    done
}
{'fraction_non_alphanumeric': 0.17111489683891729, 'fraction_numerical': 0.014764338444065871, 'mean_word_length': 3.254428341384863, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 12, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '721320', 'n_tokens_mistral': 2136, 'n_tokens_neox': 2047, 'n_words': 617}