-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
131 lines (110 loc) · 2.77 KB
/
.aliases
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# vi: ft=sh ts=4 tw=79
###########
# systemd #
###########
alias sk='systemctl --user'
alias skdr='systemctl --user daemon-reload'
alias jr='journalctl -r'
alias jd='journalctl --disk-usage'
alias us='systemctl start'
alias se='systemctl enable'
alias sd='systemctl disable'
alias sr='systemctl restart'
alias sf='systemctl --failed list-units'
######################
# Package management #
######################
alias pi='pamac install'
alias pa='pamac search --aur'
#############
# Archiving #
#############
alias tx='tar -xvf'
alias tl='tar -tvf'
alias ta='tar -cjf'
######################################
# File pattern search and comparison #
######################################
alias grep='grep --color'
alias egrep='egrep --color'
alias fgrep='fgrep --color'
alias diff="diff --color=always"
alias pcregrep='pcregrep --color'
alias findip="grep -E '((2[0-5]{1,2}|1?[0-9]{1,2})\.){3}\
(2[0-5]{1,2}|1?[0-9]{1,2})'"
#####################
# File manipulation #
#####################
alias rm='rm -vi'
alias cp='cp -vi'
alias mv='mv -vi'
alias ln='ln -vi'
#######
# git #
#######
alias sgi='onefetch -E'
alias gd='git diff'
alias gt='git restore'
alias gs='git stash -p'
alias gk='git checkout'
alias gr='git rebase -i'
alias gc='git commit --message'
alias gpd='git push --dry-run'
alias gra='git rebase --abort'
alias grc='git rebase --continue'
###########################################
# Directory contents and file information #
###########################################
alias ls='ls --color'
alias ll='ls -SAlh --color'
alias lt='ls -Alth --color'
alias lr='ls -RAlh --color'
######################
# Network management #
######################
alias ac='nmcli connection up'
alias dc='nmcli connection down'
alias mw='nmcli radio wifi'
alias lw='nmcli dev wifi list'
alias cw='nmcli --ask dev wifi connect'
#################
# Documentation #
#################
alias sm='man -k'
alias info='info --vi-keys'
##############################
# Image and document viewing #
##############################
alias n='nsxiv -aptf'
alias z='zathura --fork'
#######
# SSH #
#######
alias kssh='kitty +kitten ssh'
#################
# File checking #
#################
alias scc='shellcheck -W 0 -f gcc'
alias chktab='findmnt --verbose -x'
#############
# Clipboard #
#############
alias printc='xsel -ob'
alias appendc='xsel -ab'
#########################
# Desktop notifications #
#########################
alias nclear='dunstctl close-all'
alias nlow='notify-send -u low'
alias ncrit='notify-send -u critical'
#################
# Uncategorized #
#################
alias v='nvim'
alias rmide='sudo hdparm -Y'
alias vopen='sudo cryptsetup -t tcrypt open'
alias anacrontab="${EDITOR} ${HOME}/.local/etc/anacrontab"
alias t="\time --format '\nReal: %E \
User-mode: %U \
Kernel-mode: %S \
Exit code: %x' --"