summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-09-17 18:36:08 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-09-17 18:36:08 +0200
commit7b9a3d5a2480f7fa012eb3b8998de308c82b47c9 (patch)
treea1f81f2e875645b9eb8fefdc6f5912f29894a8f8 /etc/functions
parent50f0eed8ebe54a0af21b7669c0cb8b8ff479ed6f (diff)
rtab: Removed some old forgotten stuff
Diffstat (limited to 'etc/functions')
-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/\~}