Browse code

put everything in lib

James Cox authored on 23/09/2009 at 15:14:43
Showing 8 changed files
1 1
deleted file mode 100644
... ...
@@ -1,6 +0,0 @@
1
-setopt correct_all
2
-
3
-alias man='nocorrect man'
4
-alias mv='nocorrect mv'
5
-alias mysql='nocorrect mysql'
6
-alias mv='nocorrect mv'
7 1
deleted file mode 100644
... ...
@@ -1,40 +0,0 @@
1
-# Changing/making/removing directory
2
-setopt auto_name_dirs
3
-setopt auto_pushd
4
-setopt pushd_ignore_dups
5
-
6
-alias ..='cd ..'
7
-alias cd..='cd ..'
8
-alias cd...='cd ../..'
9
-alias cd....='cd ../../..'
10
-alias cd.....='cd ../../../..'
11
-alias cd/='cd /'
12
-
13
-alias 1='cd -'
14
-alias 2='cd +2'
15
-alias 3='cd +3'
16
-alias 4='cd +4'
17
-alias 5='cd +5'
18
-alias 6='cd +6'
19
-alias 7='cd +7'
20
-alias 8='cd +8'
21
-alias 9='cd +9'
22
-
23
-cd () {
24
-  if   [[ "x$*" == "x..." ]]; then
25
-    cd ../..
26
-  elif [[ "x$*" == "x...." ]]; then
27
-    cd ../../..
28
-  elif [[ "x$*" == "x....." ]]; then
29
-    cd ../../..
30
-  elif [[ "x$*" == "x......" ]]; then
31
-    cd ../../../..
32
-  else
33
-    builtin cd "$@"
34
-  fi
35
-}
36
-
37
-alias md='mkdir -p'
38
-alias rd=rmdir
39
-
40
-alias d='dirs -v'
41 1
\ No newline at end of file
42 2
new file mode 100644
... ...
@@ -0,0 +1,6 @@
0
+setopt correct_all
1
+
2
+alias man='nocorrect man'
3
+alias mv='nocorrect mv'
4
+alias mysql='nocorrect mysql'
5
+alias mv='nocorrect mv'
0 6
new file mode 100644
... ...
@@ -0,0 +1,40 @@
0
+# Changing/making/removing directory
1
+setopt auto_name_dirs
2
+setopt auto_pushd
3
+setopt pushd_ignore_dups
4
+
5
+alias ..='cd ..'
6
+alias cd..='cd ..'
7
+alias cd...='cd ../..'
8
+alias cd....='cd ../../..'
9
+alias cd.....='cd ../../../..'
10
+alias cd/='cd /'
11
+
12
+alias 1='cd -'
13
+alias 2='cd +2'
14
+alias 3='cd +3'
15
+alias 4='cd +4'
16
+alias 5='cd +5'
17
+alias 6='cd +6'
18
+alias 7='cd +7'
19
+alias 8='cd +8'
20
+alias 9='cd +9'
21
+
22
+cd () {
23
+  if   [[ "x$*" == "x..." ]]; then
24
+    cd ../..
25
+  elif [[ "x$*" == "x...." ]]; then
26
+    cd ../../..
27
+  elif [[ "x$*" == "x....." ]]; then
28
+    cd ../../..
29
+  elif [[ "x$*" == "x......" ]]; then
30
+    cd ../../../..
31
+  else
32
+    builtin cd "$@"
33
+  fi
34
+}
35
+
36
+alias md='mkdir -p'
37
+alias rd=rmdir
38
+
39
+alias d='dirs -v'
0 40
\ No newline at end of file
1 41
new file mode 100644
... ...
@@ -0,0 +1,9 @@
0
+## smart urls
1
+autoload -U url-quote-magic
2
+zle -N self-insert url-quote-magic
3
+
4
+## file rename magick
5
+bindkey "^[m" copy-prev-shell-word
6
+
7
+## jobs
8
+setopt long_list_jobs
0 9
\ No newline at end of file
1 10
new file mode 100644
... ...
@@ -0,0 +1,21 @@
0
+case "$TERM" in
1
+  xterm*|rxvt*)
2
+    preexec () {
3
+      print -Pn "\e]0;%n@%m: $1\a"  # xterm
4
+    }
5
+    precmd () {
6
+      print -Pn "\e]0;%n@%m: %~\a"  # xterm
7
+    }
8
+    ;;
9
+  screen*)
10
+    preexec () {
11
+      local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]}
12
+      echo -ne "\ek$CMD\e\\"
13
+      print -Pn "\e]0;%n@%m: $1\a"  # xterm
14
+    }
15
+    precmd () {
16
+      echo -ne "\ekzsh\e\\"
17
+      print -Pn "\e]0;%n@%m: %~\a"  # xterm
18
+    }
19
+    ;;
20
+esac
0 21
\ No newline at end of file
1 22
deleted file mode 100644
... ...
@@ -1,9 +0,0 @@
1
-## smart urls
2
-autoload -U url-quote-magic
3
-zle -N self-insert url-quote-magic
4
-
5
-## file rename magick
6
-bindkey "^[m" copy-prev-shell-word
7
-
8
-## jobs
9
-setopt long_list_jobs
10 1
\ No newline at end of file
11 2
deleted file mode 100644
... ...
@@ -1,21 +0,0 @@
1
-case "$TERM" in
2
-  xterm*|rxvt*)
3
-    preexec () {
4
-      print -Pn "\e]0;%n@%m: $1\a"  # xterm
5
-    }
6
-    precmd () {
7
-      print -Pn "\e]0;%n@%m: %~\a"  # xterm
8
-    }
9
-    ;;
10
-  screen*)
11
-    preexec () {
12
-      local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]}
13
-      echo -ne "\ek$CMD\e\\"
14
-      print -Pn "\e]0;%n@%m: $1\a"  # xterm
15
-    }
16
-    precmd () {
17
-      echo -ne "\ekzsh\e\\"
18
-      print -Pn "\e]0;%n@%m: %~\a"  # xterm
19
-    }
20
-    ;;
21
-esac
22 1
\ No newline at end of file