diff --git a/dot/file/profile b/dot/file/profile index 1ab6a18..681aa0a 100755 --- a/dot/file/profile +++ b/dot/file/profile @@ -15,6 +15,10 @@ export_loop(){ done } +q(){ + exit +} + # Standard variables. export_loop \ ENV '$HOME/.shrc' \ diff --git a/profile b/profile index 69c59e5..84275ca 100644 --- a/profile +++ b/profile @@ -148,9 +148,10 @@ fn cd { fn - { # Move back in history for $1 notes. + num = $1 if(~ $#* 0) - 1 = 1 - builtin cd $cds($1) + num = 1 + builtin cd $cds($num) } fn cds {