-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_aliases
More file actions
79 lines (68 loc) · 1.7 KB
/
bash_aliases
File metadata and controls
79 lines (68 loc) · 1.7 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
74
75
76
77
78
#!/bin/bash
alias dita='cd /home/sschmied/git/ditahelp && git --no-pager log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit -n5 && git fetch && git status'
alias inst="sudo apt -y install"
alias what="apt show"
alias grepr="grep -r"
alias unixtime="date +%s"
alias dummy='git commit --allow-empty && git push'
alias clean="~/clean"
alias notepad=/usr/bin/gedit
alias xp="xmllint --xpath"
alias watch="watch --differences=permanent"
# Pipe stdout to clipboard, e.g. cat foo.txt | copy
alias copy="xsel -ib"
alias vi="vim"
alias td="todolist"
alias tda="todolist a"
alias todo="todolist"
alias tdl="todolist l"
alias google="googler"
# ghost in the shell part 3
# SHORT QUERY FUNCTIONS q()
q() {
if [ ${#} -eq 1 ]
then
ls | grep --color -i ${1} 2> /dev/null
else
echo "usage: q string"
fi
}
# SHORT QUERY FUNCTIONS Q()
Q() {
if [ ${#} -eq 1 ]
then
ls | grep --color ${1} 2> /dev/null
else
echo "usage: Q string"
fi
}
# SHORT QUERY FUNCTIONS qq()
qq() {
if [ ${#} -eq 1 ]
then
find . \
| grep -i ${1} 2> /dev/null \
| cut -c 3-999 \
| grep --color -i ${1} 2> /dev/null
else
echo "usage: qq string"
fi
}
# SHORT QUERY FUNCTIONS QQ()
QQ() {
if [ ${#} -eq 1 ]
then
find . \
| grep ${1} 2> /dev/null \
| cut -c 3-999 \
| grep ${1} 2> /dev/null
else
echo "usage: QQ string"
fi
}
function iterm2_print_user_vars() {
it2git
}
alias vaghost="sed -i -e 's/\[127\.0\.0\.1\]\:2222.*//g' $HOME/.ssh/known_hosts"
alias pdeploy=$HOME/git/dam-prod-deploy/dam-prod-deploy.sh
alias gt=$HOME/git/lazycommit/lazycommit.sh