Skip to content

Commit 5883632

Browse files
authored
Guard cs against paths with spaces
1 parent 327680d commit 5883632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/assets/dotfiles/.bashrc-asrob

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## cd + ls, by @jgvictores
2-
function cs () { cd $1; ls; }
2+
function cs () { cd ${1:+"$1"}; ls; }
33

44
## transfer path: guarda el path actual en un fichero oculto, by @jgvictores
55
function tp () { pwd > ~/.sp; }

0 commit comments

Comments
 (0)