summaryrefslogtreecommitdiff
path: root/.config/shell/aliasrc
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-08 02:13:49 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-08 02:13:49 -0700
commitef7b5064e1d92dd2e138b9ab2b7bb8b86a9ed34c (patch)
tree819715f92002168f553a9fbc8693ea0888c1eaad /.config/shell/aliasrc
parente20761ce2cbce8d45bfa128d39ebc615b3e36f4f (diff)
Reorganize aliases
Diffstat (limited to '.config/shell/aliasrc')
-rw-r--r--.config/shell/aliasrc18
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
new file mode 100644
index 0000000..40d616f
--- /dev/null
+++ b/.config/shell/aliasrc
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Use neovim for vim if present.
+command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d"
+
+# Use color when available.
+# Better ls with exa.
+alias ls="exa -aH --color=automatic --group-directories-first --git"
+alias ll="ls -l"
+alias lt="ls -TL 6"
+
+alias grep="grep --color=auto"
+alias diff="diff --color=auto"
+
+alias dots="/usr/bin/git --git-dir=$HOME/.dots/ --work-tree=$HOME"
+
+# TexLive Manager fix as described in https://wiki.archlinux.org/index.php/TeX_Live
+alias tlmgr="$TEXMFDIST/scripts/texlive/tlmgr.pl --usermode"