We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b00f630 commit fc28bd1Copy full SHA for fc28bd1
.gitattributes
@@ -1 +1,2 @@
1
ltcd linguist-language=Shell
2
+cd_utils linguist-language=Shell
cd_utils
@@ -0,0 +1,23 @@
+# No args
+cdrm ()
3
+{
4
+ local -r CDF="$HOME/.cd/stats_glob"
5
+ local i
6
+
7
+ while read i; do
8
+ [ -d "$i" ] && [ -x "$i" ] && { echo "$i"; continue; }
9
+ echo "Removing \"$i\"" > /dev/stderr
10
+ done < $CDF > $CDF.tmp
11
12
+ mv $CDF.tmp $CDF
13
+}
14
15
16
+cdedit ()
17
18
19
20
+ vim $CDF
21
+ /bin/rm -f $CDF~
22
23
0 commit comments