From 980cb1cbaf67b9f060acb588d8984ce35347b42f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 23 Apr 2015 20:40:43 -0700 Subject: [PATCH] .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 --- src/.bashrc.d/10aliases | 1 + 1 file changed, 1 insertion(+) 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' -- 2.26.2