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.

127 lines
2.6 KiB

5 years ago
#!/bin/sh
# bash
alias ":wq"="exit"
alias ":q"="exit"
# cd
alias ".."="cd .."
alias "..."="cd ../.."
alias "...."="cd ../../.."
alias "....."="cd ../../../.."
alias "dockervol"="cd /var/lib/docker/volumes"
5 years ago
# cp
alias cp="cp -i"
# clear
alias c="clear"
# config
alias config="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
# diff
alias diff="diff --color=auto"
5 years ago
# fzf
src() { find ~/.config/* ~/.local/bin/* -type f | fzf | xargs -r $EDITOR ;}
srd() { find ~/nextCloud/* -type f | grep ".pdf" | fzf | xargs -r $READER ;}
5 years ago
yaya() { yay -Slq | fzf --reverse --prompt="yay install > " -q "$1" -m --preview 'yay -Si {1}'| xargs -ro yay -S }
yayr() { yay -Qq | fzf --reverse --prompt="yay remove > " -q "$1" -m --preview 'yay -Qi {1}' | xargs -ro yay -Rns }
# ghb
alias vidcoder="ghb"
# git
alias ga="git add"
alias grm="git rm"
alias gc="git commit"
alias gp="git push"
5 years ago
# grep
alias grep="grep --color=auto"
5 years ago
# haste
haste() {
a=$(cat);
curl -X POST -s -d "$a" https://paste.tiyn.eu/documents | awk -F '"' '{print "https://paste.tiyn.eu/"$4}';
}
5 years ago
#khal
alias calendar="khal interactive"
# khard
alias contacts="khard"
# kolourpaint
alias paint="kolourpaint"
5 years ago
# ls(d)
alias l="lsd"
alias la="lsd -la"
alias ll="lsd -l"
alias tree="lsd --tree"
# mkdir
alias mkdir="mkdir -p"
# multitail
alias mon="multitail -CS irc -f"
# mutt
alias mutt="neomutt"
alias upmutt="mbsync -a && neomutt"
5 years ago
# mv
alias mv="mv -i"
# octave
alias octave="octave --persist"
5 years ago
# pacman
alias pac="sudo pacman"
# ping
alias ping="ping -c 5"
# rm
alias rm="rm -i"
5 years ago
# rsync
alias rsync="rsync -vh --progress --partial"
5 years ago
# root/sudo
alias su="sudo -i"
alias sudo="sudo "
5 years ago
#sc-im
alias sc="sc-im"
# script
alias scriptclear="cat typescript | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g' | col -b > typescript-processed"
# tmux
alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"
5 years ago
# nvim
alias svim="sudo nvim"
alias svi="sudo nvim"
5 years ago
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d"
command -v nvim >/dev/null && alias vi="nvim" vidiff="nvim -d"
5 years ago
# weather
alias weather="curl wttr.in"
# wget
alias wget="wget --hsts-file=$XDG_CACHE_HOME/wget-hsts"
# yay
alias yay="yay --sudoloop --noredownload --norebuild"
# youtube-dl
alias yta="youtube-dl -f 'bestaudio[ext=m4a]'"
3 years ago
alias ytv="youtube-dl -f 'bestvide[ext=mp4]+bestaudio[ext=m4a]'"
alias yta2c="youtube-dl --external-downloader aria2c --external-downloader-args '-j 16 -x 16 -s 16 -k 2M' -f 'bestaudio/best'"
alias ytv2c="youtube-dl --external-downloader aria2c --external-downloader-args '-j 16 -x 16 -s 16 -k 2M' -f 'bestvideo[height>=720]+bestaudio/best'"