# vimdiff style with nvim alias vim='nvim' alias vi='nvim' alias nvimdiff='nvim -d' # ssh as root -> Sysadmin trick alias r='ssh -l root' # fuck! alias fuck='COMMAND=$(history -p \!\!); echo sudo $COMMAND; sudo $COMMAND' # enable color support of ls and also add handy aliases alias ls='ls --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' # alias for Node.js projects alias ntree='tree -I node_modules' # alias for Clojure projects alias ctree='tree -I target' # Clean whiteboards! # found at: https://gist.github.com/lelandbatey/8677901 alias whiteboard="convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2" # Pandoc for ElenQ alias pandoc-xelatex="pandoc $@ --pdf-engine=xelatex --to latex -N" alias elenqdoc-article="pandoc-xelatex $@ --standalone --template elenq-article --metadata=documentclass:article --resource-path=~/.pandoc:." alias elenqdoc-book="pandoc-xelatex $@ --standalone --template elenq-book --metadata=documentclass:book --top-level-division=chapter --resource-path=~/.pandoc:." # Open using xdg alias open="xdg-open $@ &>/dev/null" # Reasonable looking calendar alias cal="cal -m" alias _cal="cal" # Twitch function twitch { mpv "https://twitch.tv/$1" } # Clipboard alias clipboard="xclip -selection clipboard" # Tilde.team alias tilde="ssh tilde.team" # Youtube-dl playlist alias yt-dlp-playlist="yt-dlp -o '%(playlist_index)s-%(title)s.%(ext)s' $@" # Email write in vim alias mail='vim +"set ft=markdown"'