Created
May 6, 2014 12:36
-
-
Save felixrabe/8b1b04836d1f015f349c to your computer and use it in GitHub Desktop.
function l()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unalias l 2> /dev/null || true | |
function l() { | |
if [[ $# = 0 ]] ; then | |
arg=. | |
else | |
arg=$1 | |
fi | |
if [[ -d $arg ]] ; then | |
ls -al "$arg" | |
else | |
less "$arg" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment