Tweak function behaviour

This commit is contained in:
David Aizenberg
2014-07-07 17:54:39 +01:00
parent 918b108742
commit 5e46cd874d

View File

@@ -37,9 +37,9 @@ alias reload='source ~/.bashrc' # reload bash config.
#Automatically do an ls after each cd
cd() {
if [ -n "$1" ]; then
builtin cd "$@" && ls
builtin cd "$@" && ls -hF
else
builtin cd ~ && ls
builtin cd ~ && ls -hF
fi
}
# Get IP (call with myip)