You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.3 KiB

6 years ago
#!/bin/sh
# bash
alias ":wq"="exit"
alias ":q"="exit"
5 years ago
# calcurse
alias cal="calcurse-caldav --init=keep-remote && calcurse"
alias calchange="cd ~/.calcurse/caldav"
6 years ago
# cd
alias ".."="cd .."
alias "..1"="cd .."
alias "..2"="cd ../.."
alias "..3"="cd ../../.."
alias "..4"="cd ../../../.."
alias "..5"="cd ../../../../.."
6 years ago
# cp
alias cp="cp -i"
6 years ago
# clear
6 years ago
alias c="clear && neofetch"
6 years ago
# config
6 years ago
alias config="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
6 years ago
# fzf
sc() { du -a ~/.config/* ~/.local/bin/* | awk '{print $2}' | fzf | xargs -r $EDITOR ;}
5 years ago
sd() { du -a ~/ownCloud/* | awk '{print $2}' | grep ".pdf" | fzf | xargs -r $READER ;}
# git
alias TexHandout="cp ~/github/Tools/LaTeX\ Templates/LaTeX\ Handout/Handout.tex"
6 years ago
# 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"
6 years ago
# mkdir
alias mkdir="mkdir -p"
6 years ago
# mount
alias mount="mount |column -t"
6 years ago
# mv
alias mv="mv -i"
6 years ago
# pacman
alias pac="sudo pacman"
alias pacclean="sudo pacman -Rs $(pacman -Qtdq)"
# ping
alias ping="ping -c 5"
6 years ago
# rm
alias rm="rm -i"
6 years ago
# 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"
6 years ago
# weather
alias weather="curl wttr.in"
6 years ago