dotfiles

My dotfiles: zsh, lf, sxiv, i3, ranger, mpd and more
Log | Files | Refs | Submodules | README | LICENSE

aliasrc (1191B)


      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 	cp="cp -iv" \
      9 	mv="mv -iv" \
     10 	rm="rm -vI" \
     11 	mkd="mkdir -pv" \
     12 	yt="youtube-dl --add-metadata -i" \
     13 	yta="yt -x -f bestaudio/best" \
     14 	ffmpeg="ffmpeg -hide_banner"
     15 
     16 # Colorize commands when possible.
     17 alias \
     18 	ls="ls -hN --color=auto --group-directories-first" \
     19 	grep="grep --color=auto" \
     20 	diff="diff --color=auto" \
     21 	ccat="highlight --out-format=ansi"
     22 
     23 # These common commands are just too long! Abbreviate them.
     24 alias \
     25 	ka="killall" \
     26 	g="git" \
     27 	trem="transmission-remote" \
     28 	YT="youtube-viewer" \
     29 	sdn="sudo shutdown -h now" \
     30 	f="$FILE" \
     31 	e="$EDITOR" \
     32 	v="$EDITOR" \
     33 	p="sudo pacman" \
     34 	xi="sudo xbps-install" \
     35 	xr="sudo xbps-remove -R" \
     36 	xq="xbps-query" \
     37 	z="zathura"
     38 
     39 alias \
     40 	magit="nvim -c MagitOnly" \
     41 	ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/zshnameddirrc" \
     42 	weath="less -S ${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" \
     43 	tmux="tmux -f ${XDG_CONFIG_HOME:-$HOME/.config}/tmux/tmux.conf" \