From: W. Trevor King Date: Fri, 24 Apr 2015 03:40:43 +0000 (-0700) Subject: .bashrc.d/10aliases: Add a 'cdcwd' alias X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=980cb1cbaf67b9f060acb588d8984ce35347b42f;p=dotfiles-public.git .bashrc.d/10aliases: Add a 'cdcwd' alias For expanding symlinks in the current working directory. 'realpath' isn't in POSIX [1], but it is in GNU Coreutils [2]. [1]: http://pubs.opengroup.org/stage7tc1/idx/utilities.html [2]: https://www.gnu.org/software/coreutils/manual/html_node/realpath-invocation.html --- diff --git a/src/.bashrc.d/10aliases b/src/.bashrc.d/10aliases index 69614bc..cd7f969 100644 --- a/src/.bashrc.d/10aliases +++ b/src/.bashrc.d/10aliases @@ -24,6 +24,7 @@ alias w3mg='w3m http://www.google.com/' alias oggr='ogg123 -qb 500' # play ogg radio streams (quiet, big input buffer) # Alias useful one-liners & common commands +alias cdcwd='cd $(realpath "${PWD}")' alias findex='find . -perm -u+x ! -type d' alias git-blame-author='git blame sudoku.c | sed "s/^[^(]*//" | sed "s/ [0-9]\{4\}-[^)]*//" | less' alias sortdat='find . -printf "%TY-%Tm-%Td+%TH:%TM:%TS %h/%f\n" | sort -n'