-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoh-my-dogesh.plugin.zsh
More file actions
executable file
·77 lines (68 loc) · 1.39 KB
/
oh-my-dogesh.plugin.zsh
File metadata and controls
executable file
·77 lines (68 loc) · 1.39 KB
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
# functions
# _sssh
# runs arbitrary command silently, sends all output to /dev/null
_sssh(){ 2>/dev/null 1>&2 $* }
# _git
# substitute for common git commands.
# uses other aliased commands in combination to perform git subcommands
_git(){
array=($*)
case "$1" in
lol)
git clone "$2"
;;
very)
git pull ${array[2,-1]}
;;
rly)
git push ${array[2,-1]}
;;
many)
git add ${array[2,-1]}
;;
lots)
git add --all .
;;
plz)
git commit -m "$2"
;;
*)
git status
;;
esac
}
# _shell
# ssh and scp aliases.
# uses other aliased commands in combination to perform ssh subcommands.
_shell(){
array=($*)
case "$1" in
lol)
ssh -i "$2" "$3"@"$4"
;;
their)
scp -r "$2" "$3"@"$4":"$5"
;;
heer)
scp -r "$2"@"$3":"$4" "$5"
;;
*)
ssh ${array[@]}
;;
esac
}
# command aliases
alias doge='open http://dogeforall.biz/'
alias fetch='wget'
alias lots='find'
alias many='cp -r'
alias much='_shell'
alias notrly='rm -rf'
alias plz='cd'
alias rly='ls -la'
alias so='echo'
alias sssh='_sssh'
alias such='man'
alias very='mkdir -p'
alias want='curl'
alias wow='_git'