-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc.alias
100 lines (88 loc) · 2.09 KB
/
.bashrc.alias
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#
# .bashrc.alias
#
#
#std
#
alias cp='cp -i'
alias rm='rm -i'
alias mv='mv -i'
alias ll="ls -laF"
alias ls="ls -aF"
alias cd..='cd ..'
alias md='mkdir -p'
#
### Misc
#
alias hh=history
alias rrc='source ~/.bashrc'
alias grep='egrep -i --color=auto'
# psg moved to .bashrc.<hostname> since it differs on BSD
alias kd3=kdiff3
alias ftail="docker logs -f frigate 2>&1"
alias wg='egrep "(WARN|ERR| fail)"'
alias ssK="ssh-add ~/.ssh/Taisto_Admin-2022.ppk.pem"
#
## git stuff
#
alias g="git"
alias git-symbolic-ref="git symbolic-ref"
alias gb="git branch"
alias gp="git pull"
alias gpr="git pull --rebase"
alias gco="git checkout"
alias gs="git status"
alias gsu="git status --untracked-files=no"
alias grc="git rebase --continue"
alias gf="git fetch"
alias gd="git diff"
alias gds="git diff --staged"
alias gdn="git diff --name-only"
alias gdt="git difftool"
alias gdts="git difftool --staged"
alias gcl="git config -l"
alias gsl="git stash list"
alias g-log="git log --graph --oneline --decorate --abbrev-commit"
#
## Docker
#
#alias dps='docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}"'
#
##
#
alias ee="emacs -nw"
alias ge="geany"
alias stl="systemctl"
alias show_route="netstat -rn"
# rl, dl, pl, are better as functions (to handle bsd/linux diffs)
##
#
# BSD Stuff ###TQ-TODO: Move to other branch
#
###
if which dtpstree >/dev/null 2>&1
then
alias pstree=dtpstree
fi
alias sr4='route -n show -inet'
alias sr6='route -n show -inet6 | egrep -vi "^F|UHLc"'
alias srA='route -n show'
alias sudo="sudo -H"
alias rlist="pfctl -vv -s r | grep ^@"
alias eep="emacs /etc/pf.conf"
alias eed="emacs /etc/dhcpd.conf"
alias eem="emacs /etc/pf.macros.conf"
alias eea="emacs /etc/postfix/aliases"
alias pg_report="postgreyreport --user _postgrey --dbdir /var/db/postgrey/ --show_tries --show_time" #TQ-TODO
# Virtualization, Qemu, Etc
#
alias vlist="virsh list"
alias vla="virsh list --all"
alias vc="virsh console"
alias vdump="virsh dumpxml"
alias vDD="virsh destroy"
alias qi=qemu-img
alias c="/root/bin/qssh.sh"
alias gau="git add -u"
alias btlogs='docker logs -f room-assistant'
alias rtail="docker logs -f room-assistant"