summaryrefslogtreecommitdiffstats
path: root/ksh/conf/alias.ksh
blob: 4360fa78211670b1422f920eeff0f340027ce202 (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
57
58
if command -v colorls > /dev/null ; then
	LS='colorls -G'
else
	LS='ls'
fi

# 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 -riv' \
  mount='doas mount -v' \
  umount='doas umount -v'

# Programas con opciones por defecto
alias \
  l='less' \
  v="$EDITOR" \
  m='mutt' \
  ls="$LS -FAGt" \
  ll='ls -cohltFAG' \
  df='df -hT --total' \
  du='du -ch' \
  xi="doas pkg_add" \
  se="doas nvi" \
  tt="toot tui" \
  ytv='pipe-viewer' \
  w3m='w3m -no-cookie -v' \
  irc='irssi --config="$XDG_CONFIG_HOME"/irssi/config --home="$XDG_DATA_HOME"/irssi' \
  del='doas pkg_delete -cmvvv' \
  pwn='chmod +x' \
  dfc='dfc -dmT' \
  rat='tar -xf' \
  man='man -Owidth=$(($COLUMNS<80?($COLUMNS-2):78))' \
  wifi='doas sh /etc/netstart' \
  ping='ping -c 5' \
  free='free -ht' \
  wget='wget --no-hsts' \
  dbup='doas /usr/libexec/locate.updatedb' \
  tree='colortree -FANh' \
  dirdl='wget -r --no-parent -l1 -e robots=off --reject="index.html" --no-hsts' \
  tplano='mosh tplano' \
  reboot='doas shutdown -r now' \
  replace='doas pkg_add -r' \
  shutdown='doas shutdown -p now'
Un proyecto texto-plano.xyz