1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
--- _fdrc.orig Mon Jun 10 00:00:00 2002
+++ _fdrc Tue Jun 11 21:27:57 2002
@@ -13,2 +13,3 @@
#SORTTYPE=0
+FD_SORTTYPE=101
@@ -29,2 +30,3 @@
#SORTTREE=0
+FD_SORTTREE=1
@@ -50,2 +52,3 @@
#ADJTTY=0
+FD_ADJTTY=1
@@ -62,2 +65,3 @@
#DEFCOLUMNS=2
+FD_DEFCOLUMNS=1
@@ -104,2 +108,3 @@
#ANSICOLOR=0
+FD_ANSICOLOR=1
@@ -144,2 +149,3 @@
#LANGUAGE=$LANG
+FD_LANGUAGE=$LANG
@@ -215,2 +221,3 @@
#PAGER=more%K
+FD_PAGER=${PAGER:-/usr/bin/more}%K
#EDITOR=vi
@@ -222,2 +229,34 @@
# launcher definition
+tar="tar"
+tar_format="%a %u/%g %s %m %d %t %y %f"
+
+launch ".tar" "$tar tvf" "$tar_format"
+
+for ext in .tar.Z .taZ .tar.gz .tgz .taz; do
+ launch "$ext" "$tar ztvf %C" "$tar_format"
+done
+
+for ext in .tar.bz2 .tbz2; do
+ launch "$ext" "$tar jtvf %C" "$tar_format"
+done
+
+launch "/.lzh" "lha -lq" "%a %u/%g %s %x %m %d %{yt} %f"
+
+for ext in /.zip /.jar; do
+ launch "$ext" "unzip -lqq" "%s %m-%d-%y %t %f"
+done
+
+for ext in .Z .gz; do
+ launch "$ext" "zcat %C | $PAGER"
+done
+
+launch ".bz2" "bzip2 -cd %C | $PAGER"
+
+# RCS/CVS files
+launch ",v" "rlog %C | $PAGER"
+
+# distribution files
+launch ".aa" "cat %X.?? | $tar tvfz -" "$tar_format"
+arch ".aa" "echo ERROR" "cat %X.?? | $tar zxf - %TA"
+
#(Default)
@@ -325,2 +364,37 @@
# archiver definition
+
+arch ".tar" "$tar cf %C %T" "$tar xf %C %TA"
+
+for ext in .tar.Z .taZ; do
+ arch "$ext" "$tar Zcf %C %T" "$tar Zxf %C %TA"
+done
+
+for ext in .tar.gz .tgz .taz; do
+ arch "$ext" "$tar cf - %T | gzip -9c > %C" "$tar zxf %C %TA"
+done
+
+for ext in .tar.bz2 .tbz2; do
+ arch "$ext" "$tar cf - %T | bzip2 -9c > %C" "$tar jxf %C %TA"
+done
+
+arch ".Z" "compress %M" "uncompress %C"
+arch ".gz" "gzip -9 %M" "gzip -d %C"
+arch ".bz2" "bzip2 -9 %M" "bzip2 -d %C"
+
+arch "/.lzh" "lha aq %C %TA" "lha xq %C %TA"
+
+for ext in /.zip /.jar; do
+ arch "$ext" "zip -q %C %TA" "unzip -q %C %TA"
+done
+
+_uuencode() {
+ uu=$1
+ shift
+ for file; do
+ uuencode $file $file >> $uu
+ done
+}
+
+arch ".uu" "_uuencode %C %TA" "uudecode -ic < %C"
+
#(Default)
|