<commit_before># Common shell functions
alias tf='tail -f'
alias -g L="| less"
alias -g N="| /dev/null"
alias -g G="| grep -Ein"
alias top="htop"
alias free="free -h"

# Python
alias py="python"
alias py2="python2"

# jump to recently used items
alias a='fasd -a'        # any
alias s='fasd -si'       # show / search / select
alias d='fasd -d'        # directory
alias f='fasd -f'        # file
alias sd='fasd -sid'     # interactive directory selection
alias sf='fasd -sif'     # interactive file selection
alias z='fasd_cd -d'     # cd, same functionality as j in autojump
alias zz='fasd_cd -d -i' # cd with interactive selection

# Show human friendly numbers and colors
alias df='df -h'
alias du='du -h -d 2'
alias ll='ls -alGh --color=auto'
alias la='ll -A'
alias ls='ls -Gh --color=auto'

# package managment
compdef pac='yaourt'
compdef paci='yaourt'
compdef pacI='yaourt'
compdef pacx='yaourt'
compdef pacX='yaourt'
compdef pacq='yaourt'
compdef pacQ='yaourt'
compdef pacs='yaourt'
compdef pacS='yaourt'
compdef pacu='yaourt'
compdef pacU='yaourt'

# Common Programming stuff
alias ctags='ctags -R . --exclude=target --exclude=vendor --exclude=project'

alias gdb="gdb --quiet"

function eecho {
  echo $@ 1>&2
}

function ff {
  if [ $# = 0 ]; then
    eecho "usage: ff <file>" 1>&2
    return 1
  fi
  if [ -d "$1" ]; then
    eecho "That's a directory, dumbass." 1>&2
    return 1
  elif [ "${1%/*}" = "$1" ]; then
    firefox -new-tab "file://$(pwd)/$1"
  else
    "cd" "${1%/*}"
    local dir="$(pwd)"
    "cd" - >/dev/null
    firefox -new-tab "file://$dir/${1##*/}"
  fi
  return 0
}
<commit_msg>remved stuff that didnt do anything<commit_after># Common shell functions
alias tf='tail -f'
alias -g L="| less"
alias -g N="| /dev/null"
alias -g G="| grep -Ein"
alias top="htop"
alias free="free -h"
alias clip="xclip -se -c"

# Python
alias py="python"
alias py2="python2"

# jump to recently used items
alias a='fasd -a'        # any
alias s='fasd -si'       # show / search / select
alias d='fasd -d'        # directory
alias f='fasd -f'        # file
alias sd='fasd -sid'     # interactive directory selection
alias sf='fasd -sif'     # interactive file selection
alias z='fasd_cd -d'     # cd, same functionality as j in autojump
alias zz='fasd_cd -d -i' # cd with interactive selection

# Show human friendly numbers and colors
alias df='df -h'
alias du='du -h -d 2'
alias ll='ls -alGh --color=auto'
alias la='ll -A'
alias ls='ls -Gh --color=auto'

# Common Programming stuff
alias ctags='ctags -R . --exclude=target --exclude=vendor --exclude=project'

alias gdb="gdb --quiet"

function eecho {
echo $@ 1>&2
}

function ff {
if [ $# = 0 ]; then
  eecho "usage: ff <file>" 1>&2
  return 1
fi
if [ -d "$1" ]; then
  eecho "That's a directory, dumbass." 1>&2
  return 1
elif [ "${1%/*}" = "$1" ]; then
  firefox -new-tab "file://$(pwd)/$1"
else
  "cd" "${1%/*}"
  local dir="$(pwd)"
  "cd" - >/dev/null
  firefox -new-tab "file://$dir/${1##*/}"
fi
return 0
}

{'fraction_non_alphanumeric': 0.16969086021505375, 'fraction_numerical': 0.012768817204301076, 'mean_word_length': 3.181179775280899, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '5724644', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1115, 'n_words': 371}