summaryrefslogtreecommitdiffstats
path: root/ksh/conf/alias.ksh
diff options
context:
space:
mode:
Diffstat (limited to 'ksh/conf/alias.ksh')
-rw-r--r--ksh/conf/alias.ksh56
1 files changed, 56 insertions, 0 deletions
diff --git a/ksh/conf/alias.ksh b/ksh/conf/alias.ksh
new file mode 100644
index 0000000..11caebf
--- /dev/null
+++ b/ksh/conf/alias.ksh
@@ -0,0 +1,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'
Un proyecto texto-plano.xyz