diff --git a/shell/aliases.sh b/shell/aliases.sh index 7c69861f..1079ea35 100644 --- a/shell/aliases.sh +++ b/shell/aliases.sh @@ -7,8 +7,16 @@ alias ...='cd ../..' alias ....='cd ../../..' alias -- -='cd -' +alias ln="${aliases[ln]:-ln} -v" # verbose ln alias ls="${aliases[ls]:-ls} --group-directories-first" alias l='ls -l' alias ll='ls -la' -alias ln='ln -v' # verbose ln +alias pubkey='cat ~/.ssh/id_rsa.pub | y | echo "Public key copied to pasteboard."' + +# For example, to list all directories that contain a certain file: find . -name +# .gitattributes | map dirname +alias map="xargs -n1" + +take() { mkdir "$1" && cd "$1"; } +hex() { echo -n $@ | xxd -psdu; }