From a86bd5b6e3ba3bfabb39e1afb69ad0291e638c64 Mon Sep 17 00:00:00 2001 From: tiynger Date: Thu, 3 Oct 2019 18:07:08 +0200 Subject: [PATCH] moving aliasrc --- .config/aliasrc | 78 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 .config/aliasrc diff --git a/.config/aliasrc b/.config/aliasrc new file mode 100644 index 0000000..78a9447 --- /dev/null +++ b/.config/aliasrc @@ -0,0 +1,78 @@ +#!/bin/sh + +# bash +alias ":wq"="exit" +alias ":q"="exit" + +# calcurse +alias cal="calcurse-caldav --init=keep-remote && calcurse" +alias calchange="cd ~/.calcurse/caldav" + +# cd +alias ".."="cd .." +alias "..1"="cd .." +alias "..2"="cd ../.." +alias "..3"="cd ../../.." +alias "..4"="cd ../../../.." +alias "..5"="cd ../../../../.." + +# cp +alias cp="cp -i" + +# clear +alias c="clear" + +# config +alias config="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME" + +# fzf +sc() { find ~/.config/* ~/.local/bin/* -type f | fzf | xargs -r $EDITOR ;} +sd() { find ~/ownCloud/* -type f | grep ".pdf" | fzf | xargs -r $READER ;} + +# git +alias TexHandout="cp ~/github/Tools/LaTeX\ Templates/LaTeX\ Handout/Handout.tex" + +# grep +alias grep="grep --color=auto" + +# lastpass +alias lastpass="lpass" + +# ls(d) +alias l="lsd" +alias la="lsd -la" +alias ll="lsd -l" +alias tree="lsd --tree" + +# mkdir +alias mkdir="mkdir -p" + +# mount +alias mount="mount |column -t" + +# mv +alias mv="mv -i" + +# pacman +alias pac="sudo pacman" +alias pacclean="sudo pacman -Rs $(pacman -Qtdq)" + +# ping +alias ping="ping -c 5" + +# rm +alias rm="rm -i" + +# root/sudo +alias root="sudo -i" +alias su="sudo -i" + +# nvim +alias svim="sudo nvim" +command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" + +# weather +alias weather="curl wttr.in" + +# various +alias fuck='sudo $(history -p !!)'