blob: 11caebf2a9f0e61db7882eec82b671d98d1680f2 (
plain) (
blame)
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
|
if command -v colorls > /dev/null ; then
LS='colorls'
else
LS='ls'
fi
# Programas
alias \
v="$EDITOR" \
m='neomutt' \
xi="doas pkg_add" \
vv='nvi' \
se="doas nvim" \
irc='irssi --config="$XDG_CONFIG_HOME"/irssi/config --home="$XDG_DATA_HOME"/irssi' \
del='doas pkg_delete -cmvvv' \
updatedb='doas /usr/libexec/locate.updatedb'
# Tmux
alias tmux='tmux -2'
if [[ -n $TMUX ]]; then
alias txa='tmux switch-client -t'
else
alias txa='tmux attach-session -t'
fi
alias \
txn='tmux new-session -s' \
txk='tmux kill-session -t' \
txz='tmux kill-server'
# MAXIMUM VERBOSITY YIELDS MAXIMUM RESULTS
alias \
mv='mv -iv' \
mkdir='mkdir -p' \
cp='cp -Raiv' \
rm='rm -iv' \
mount='doas mount -v' \
umount='doas umount -v'
# Con opciones por defecto
alias \
ls="$LS -FAGt" \
ll='ls -cohltFAG' \
df='df -hT --total' \
free='free -ht' \
du='du -sh' \
ping='ping -c 5' \
dfc='dfc -dmT' \
wget='wget --no-hsts' \
# Comandos
alias \
tplano='mosh tplano' \
reboot='doas shutdown -r now' \
shutdown='doas shutdown -p now' \
pwn='chmod +x' \
rat='tar -xf'
|