mirror of https://github.com/tiyn/dotfiles
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.
71 lines
1.1 KiB
71 lines
1.1 KiB
#!/bin/sh
|
|
|
|
# bash
|
|
alias ":wq"="exit"
|
|
alias ":q"="exit"
|
|
|
|
# cd
|
|
alias ".."="cd .."
|
|
alias "..."="cd ../.."
|
|
alias "...."="cd ../../.."
|
|
alias "....."="cd ../../../.."
|
|
alias "......"="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 ;}
|
|
|
|
|
|
# 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 su="sudo -i"
|
|
|
|
# script
|
|
alias scriptclear="cat typescript | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g' | col -b > typescript-processed"
|
|
|
|
# nvim
|
|
alias svim="sudo nvim"
|
|
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d"
|
|
|
|
# weather
|
|
alias weather="curl wttr.in"
|