Added a few things for profile files.

This commit is contained in:
k1574 2021-11-30 05:48:21 +05:00
parent 8c4ea01f98
commit 9707225cea
2 changed files with 7 additions and 2 deletions

View file

@ -15,6 +15,10 @@ export_loop(){
done done
} }
q(){
exit
}
# Standard variables. # Standard variables.
export_loop \ export_loop \
ENV '$HOME/.shrc' \ ENV '$HOME/.shrc' \

View file

@ -148,9 +148,10 @@ fn cd {
fn - { fn - {
# Move back in history for $1 notes. # Move back in history for $1 notes.
num = $1
if(~ $#* 0) if(~ $#* 0)
1 = 1 num = 1
builtin cd $cds($1) builtin cd $cds($num)
} }
fn cds { fn cds {