dotfiles

My dotfiles used for LARBS
Log | Files | Refs | README | LICENSE

aliasrc (1199B)


      1 #!/bin/sh
      2 
      3 # Use neovim for vim if present.
      4 command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d"
      5 
      6 # Verbosity and settings that you pretty much just always are going to want.
      7 alias \
      8 	bat="cat /sys/class/power_supply/BAT?/capacity" \
      9 	cp="cp -iv" \
     10 	mv="mv -iv" \
     11 	rm="rm -v" \
     12 	mkd="mkdir -pv" \
     13 	yt="youtube-dl --add-metadata -i" \
     14 	yta="yt -x -f bestaudio/best" \
     15 	ffmpeg="ffmpeg -hide_banner"
     16 
     17 # Colorize commands when possible.
     18 alias \
     19 	ls="ls -hN --color=auto --group-directories-first" \
     20 	grep="grep --color=auto" \
     21 	diff="diff --color=auto" \
     22 	ccat="highlight --out-format=ansi"
     23 
     24 # These common commands are just too long! Abbreviate them.
     25 alias \
     26 	ka="killall" \
     27 	g="git" \
     28 	trem="transmission-remote" \
     29 	YT="youtube-viewer" \
     30 	sdn="sudo shutdown -h now" \
     31 	f="$FILE" \
     32 	e="$EDITOR" \
     33 	v="$EDITOR" \
     34 	p="sudo pacman" \
     35 	xi="sudo xbps-install" \
     36 	xr="sudo xbps-remove -R" \
     37 	xq="xbps-query"
     38 
     39 # This alias is important. It enables the `pauseallmpv` command.
     40 alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)"
     41 
     42 # Some other stuff
     43 alias \
     44 	magit="nvim -c MagitOnly" \
     45 	ref="shortcuts >/dev/null; source ~/.config/shortcutrc" \
     46 	weath="less -S ~/.local/share/weatherreport" \