diff --git a/includes/bash_aliases.bash b/includes/bash_aliases.bash index 95c505b..ef860d7 100644 --- a/includes/bash_aliases.bash +++ b/includes/bash_aliases.bash @@ -75,7 +75,7 @@ alias dos2unix="perl -pi -e 's/\r\n?/\n/g'" password() { openssl rand -base64 ${1:-8} | c; } # Show $PATH in a readable way -alias path='echo $PATH | sed "s/:/\n/g"' +alias path='echo -e ${PATH//:/\\n}' # Git root alias gr='git rev-parse 2>/dev/null && cd "./$(git rev-parse --show-cdup)"' diff --git a/includes/bash_functions.bash b/includes/bash_functions.bash index fd11014..8fb7ca6 100644 --- a/includes/bash_functions.bash +++ b/includes/bash_functions.bash @@ -3,6 +3,11 @@ function md() { mkdir -p "$@" && cd "$@" } +# Find shorthand +function f() { + find . -name "$1" +} + # Get gzipped file size function gz() { echo "Original size (bytes): "