... | ... |
@@ -10,6 +10,7 @@ alias .='pwd' |
10 | 10 |
alias ...='cd ../..' |
11 | 11 |
|
12 | 12 |
alias _='sudo' |
13 |
+alias ss='sudo su -' |
|
13 | 14 |
|
14 | 15 |
#alias g='grep -in' |
15 | 16 |
|
... | ... |
@@ -26,7 +27,10 @@ alias gba='git branch -a' |
26 | 26 |
alias history='fc -l 1' |
27 | 27 |
|
28 | 28 |
alias ls='ls -F' |
29 |
-alias ll='ls -al' |
|
29 |
+alias ll='ls -alr' |
|
30 |
+alias l='ls' |
|
31 |
+alias ll='ls -l' |
|
32 |
+alias sl=ls # often screw this up |
|
30 | 33 |
|
31 | 34 |
alias sgem='sudo gem' |
32 | 35 |
|
33 | 36 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,38 @@ |
0 |
+# Changing/making/removing directory |
|
1 |
+ |
|
2 |
+ |
|
3 |
+alias ..='cd ..' |
|
4 |
+alias cd..='cd ..' |
|
5 |
+alias cd...='cd ../..' |
|
6 |
+alias cd....='cd ../../..' |
|
7 |
+alias cd.....='cd ../../../..' |
|
8 |
+alias cd/='cd /' |
|
9 |
+ |
|
10 |
+alias 1='cd -' |
|
11 |
+alias 2='cd +2' |
|
12 |
+alias 3='cd +3' |
|
13 |
+alias 4='cd +4' |
|
14 |
+alias 5='cd +5' |
|
15 |
+alias 6='cd +6' |
|
16 |
+alias 7='cd +7' |
|
17 |
+alias 8='cd +8' |
|
18 |
+alias 9='cd +9' |
|
19 |
+ |
|
20 |
+cd () { |
|
21 |
+ if [[ "x$*" == "x..." ]]; then |
|
22 |
+ cd ../.. |
|
23 |
+ elif [[ "x$*" == "x...." ]]; then |
|
24 |
+ cd ../../.. |
|
25 |
+ elif [[ "x$*" == "x....." ]]; then |
|
26 |
+ cd ../../.. |
|
27 |
+ elif [[ "x$*" == "x......" ]]; then |
|
28 |
+ cd ../../../.. |
|
29 |
+ else |
|
30 |
+ builtin cd "$@" |
|
31 |
+ fi |
|
32 |
+} |
|
33 |
+ |
|
34 |
+alias md='mkdir -p' |
|
35 |
+alias rd=rmdir |
|
36 |
+ |
|
37 |
+alias d='dirs -v' |
|
0 | 38 |
\ No newline at end of file |