Created
November 25, 2014 16:02
-
-
Save noahmorrison/e951890796efaae09131 to your computer and use it in GitHub Desktop.
Gitignore integrated ls
This file contains hidden or 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
ls_alias="ls --color=auto" | |
while read line | |
do | |
if [[ $line ]] && [[ ${line:0:1} != '#' ]] | |
then | |
export ls_alias+=" -I \"$line\"" | |
fi | |
done < ~/.gitignore | |
alias ls=$ls_alias | |
alias la='ls -A' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment