Skip to content

Instantly share code, notes, and snippets.

@rjurney rjurney/lsd.sh
Created Oct 4, 2019

Embed
What would you like to do?
Function to put in ~/.bash_aliases to list only directories
# 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
You can’t perform that action at this time.