From 38c1296c06fa2c9948c2de1c3b5581d9b5e96105 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 23 May 2021 20:51:42 +0200 Subject: Copying Luke Smith's config a lot --- .config/shell/aliasrc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 .config/shell/aliasrc (limited to '.config/shell/aliasrc') diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc new file mode 100755 index 0000000..8d4eacd --- /dev/null +++ b/.config/shell/aliasrc @@ -0,0 +1,27 @@ +#!/bin/sh + +# Use neovim for vim if present. +[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d" + +# Use XINITRC variable if file exists. +[ -f "$XINITRC" ] && alias startx="startx $XINITRC" + +# sudo not required for some system commands. +for x in mount unmount sv pacman updatedb su ; do + alias $x="sudo $x" +done + +# Verbosity and settings that you pretty much just always are going to want. +alias \ + cp="cp -iv" \ + mv="mv -iv" \ + rm="rm -vI" \ + bc="bc -ql" \ + mkd="mkdir -pv" \ + ffmpeg="ffmpeg -hide_banner" + +alias \ + ls="ls -hN --color=auto --group-directories-first" \ + grep="grep --color=auto" \ + diff="diff --color=auto" \ + ccat="highlight --out-format=ansi" -- cgit v1.2.3-70-g09d2