From 9707225ceaa5ec004d63a9c06f4a6559faad3904 Mon Sep 17 00:00:00 2001 From: k1574 Date: Tue, 30 Nov 2021 05:48:21 +0500 Subject: [PATCH] Added a few things for profile files. --- dot/file/profile | 4 ++++ profile | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 {