Created
October 4, 2019 15:46
-
-
Save rjurney/998f4951a57bfa5daeb9a6c18f6f4827 to your computer and use it in GitHub Desktop.
Function to put in ~/.bash_aliases to list only directories
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
# List only directories | |
lsd () { | |
if [ $# -eq 0 ] | |
then | |
LS_PATH="" | |
else | |
LS_PATH="$1/" | |
fi | |
ls -ld -- "$@"*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment