aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-10-12 15:02:26 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-10-12 15:02:26 +0200
commit0645164da29c8b19202e18e7658fd8fbdac06189 (patch)
tree2c8a4a78e774ddfab4c5f0835cdfd3633f7bb1b9 /bash
parent48a7bdbb5586906d4eeee31116a17fe4556114c1 (diff)
downloaddotfiles-0645164da29c8b19202e18e7658fd8fbdac06189.tar.gz
cs funktion
Diffstat (limited to 'bash')
-rw-r--r--bash/alias.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/bash/alias.bash b/bash/alias.bash
index 0760fcd..b0bd97d 100644
--- a/bash/alias.bash
+++ b/bash/alias.bash
@@ -2,6 +2,11 @@
function back() { cd "$OLDPWD"; }
+function cs() {
+ cd "$@" || return $?
+ ls --color=auto
+}
+
alias ls="ls --color"
alias la="ls -a"
alias ll="ls -lh"