2 ms·
Nice little helper function, thank you. What do you think about renaming it to '..'? For me this feels a bit more natural: function ..() { for i in $(seq 1 $
by sandreas 6y ago
Nice little helper function, thank you. What do you think about renaming it to '..'? For me this feels a bit more natural:
function ..() { for i in $(seq 1 $1); do cd ..; done }
.. # goes up 1 dir
.. 2 # goes up 2 dirs
.. 42 # goes up 42 dirs