diff options
| author | Horus3 | 2014-04-27 18:27:19 +0200 |
|---|---|---|
| committer | Horus3 | 2014-04-27 18:27:19 +0200 |
| commit | abc2cb5d9ccad98c563968519c89b19f3640fc4a (patch) | |
| tree | 9167b86fb1c6020bf0d445227e502825c37b07fa /bin/dirhistory.sh | |
| parent | b8bc1ad2af6aab7f9dd3937c78dab76b0c32bdca (diff) | |
| download | dotfiles-abc2cb5d9ccad98c563968519c89b19f3640fc4a.tar.gz | |
Improved dirhist.
Diffstat (limited to 'bin/dirhistory.sh')
| -rw-r--r-- | bin/dirhistory.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/dirhistory.sh b/bin/dirhistory.sh index cc652d2..d449539 100644 --- a/bin/dirhistory.sh +++ b/bin/dirhistory.sh @@ -1,2 +1,4 @@ #!/bin/zsh -for ((i=1; i<=$DIRSTACKSIZE; i++)) echo "$i $dirstack[$i]" + +echo "Printing directory stack: " +for ((i=1; i<=$DIRSTACKSIZE-1; i++)), do echo "$i $dirstack[$i]"; done |
