summaryrefslogtreecommitdiff
path: root/etc/functions/rtab
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/rtab')
-rw-r--r--etc/functions/rtab6
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/functions/rtab b/etc/functions/rtab
index 9a1410b..0920d93 100644
--- a/etc/functions/rtab
+++ b/etc/functions/rtab
@@ -20,10 +20,10 @@ while [[ $1 == -* ]]; do
;;
-h|--help)
print 'Usage: rtab [-f -l -s -t] [directory]'
- print ' -t, --tilde Print ~ for the home directory'
- print ' -f, --fish fish-simulation, like -l -s'
+ print ' -f, --fish fish-simulation, like -l -s -t'
print ' -l, --last Print the last directory''s full name'
print ' -s, --short Truncate directory names to the first character'
+ print ' -t, --tilde Print ~ for the home directory'
return 0
;;
-l|--last) lastfull=1 ;;
@@ -37,8 +37,6 @@ typeset -a tree expn
typeset result part dir=${1-$PWD}
typeset -i i
-(( pwd )) && dir=$PWD
-
[[ -d $dir ]] || return 0
(( tilde )) && dir=${dir/$HOME/\~}