2019-10-03 18:07:08 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# bash
|
|
|
|
alias ":wq"="exit"
|
|
|
|
alias ":q"="exit"
|
|
|
|
|
|
|
|
# cd
|
|
|
|
alias ".."="cd .."
|
2019-11-12 22:51:30 +01:00
|
|
|
alias "..."="cd ../.."
|
|
|
|
alias "...."="cd ../../.."
|
|
|
|
alias "....."="cd ../../../.."
|
2020-11-07 01:21:34 +01:00
|
|
|
alias "dockervol"="cd /var/lib/docker/volumes"
|
2019-10-03 18:07:08 +02:00
|
|
|
|
|
|
|
# cp
|
|
|
|
alias cp="cp -i"
|
|
|
|
|
|
|
|
# clear
|
|
|
|
alias c="clear"
|
|
|
|
|
|
|
|
# config
|
|
|
|
alias config="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
|
|
|
|
|
2022-08-13 03:26:41 +02:00
|
|
|
# cuebreakpoints
|
|
|
|
flacsplit() { cuebreakpoints $2 | shnsplit $1 -o flac }
|
|
|
|
|
2021-05-05 15:37:59 +02:00
|
|
|
# diff
|
|
|
|
alias diff="diff --color=auto"
|
|
|
|
|
2023-01-10 16:47:31 +01:00
|
|
|
# dragon-drop
|
|
|
|
alias drag="dragon-drop"
|
|
|
|
alias drop="dragon-drop"
|
|
|
|
|
2019-10-03 18:07:08 +02:00
|
|
|
# fzf
|
2019-12-02 18:21:42 +01:00
|
|
|
src() { find ~/.config/* ~/.local/bin/* -type f | fzf | xargs -r $EDITOR ;}
|
2023-08-07 04:28:35 +02:00
|
|
|
srd() { find ~/cloud/* -type f | grep ".pdf" | fzf | xargs -r $READER ;}
|
2019-10-03 18:07:08 +02:00
|
|
|
|
2021-12-07 20:31:49 +01:00
|
|
|
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 }
|
2023-09-03 22:54:07 +02:00
|
|
|
yayu() { yay -Qqe | fzf --reverse --prompt="yay install > " -q "$1" -m --preview 'yay -Si {1}'| xargs -ro yay -Sy }
|
2021-12-07 20:31:49 +01:00
|
|
|
|
2022-08-07 17:27:53 +02:00
|
|
|
# ghb
|
|
|
|
alias vidcoder="ghb"
|
2021-12-07 20:31:49 +01:00
|
|
|
|
2020-05-30 20:02:50 +02:00
|
|
|
# git
|
|
|
|
alias ga="git add"
|
|
|
|
alias grm="git rm"
|
|
|
|
alias gc="git commit"
|
|
|
|
alias gp="git push"
|
|
|
|
|
2019-10-03 18:07:08 +02:00
|
|
|
# grep
|
|
|
|
alias grep="grep --color=auto"
|
|
|
|
|
2020-05-10 00:11:24 +02:00
|
|
|
# haste
|
2020-05-18 02:03:19 +02:00
|
|
|
haste() {
|
|
|
|
a=$(cat);
|
|
|
|
curl -X POST -s -d "$a" https://paste.tiyn.eu/documents | awk -F '"' '{print "https://paste.tiyn.eu/"$4}';
|
|
|
|
}
|
2020-05-10 00:11:24 +02:00
|
|
|
|
2020-04-03 01:33:51 +02:00
|
|
|
#khal
|
2020-10-30 08:12:56 +01:00
|
|
|
alias calendar="khal interactive"
|
2020-04-03 01:33:51 +02:00
|
|
|
|
|
|
|
# khard
|
|
|
|
alias contacts="khard"
|
|
|
|
|
2022-07-03 13:43:59 +02:00
|
|
|
# kolourpaint
|
|
|
|
alias paint="kolourpaint"
|
|
|
|
|
2019-10-03 18:07:08 +02:00
|
|
|
# ls(d)
|
2022-09-07 01:13:11 +02:00
|
|
|
alias l="exa"
|
|
|
|
alias la="exa -la"
|
|
|
|
alias ll="exa -l"
|
|
|
|
alias tree="exa --tree"
|
2019-10-03 18:07:08 +02:00
|
|
|
|
|
|
|
# mkdir
|
|
|
|
alias mkdir="mkdir -p"
|
|
|
|
|
2020-12-28 18:28:29 +01:00
|
|
|
# multitail
|
|
|
|
alias mon="multitail -CS irc -f"
|
|
|
|
|
2020-10-30 08:12:56 +01:00
|
|
|
# mutt
|
|
|
|
alias mutt="neomutt"
|
|
|
|
alias upmutt="mbsync -a && neomutt"
|
2019-10-03 18:07:08 +02:00
|
|
|
|
|
|
|
# mv
|
|
|
|
alias mv="mv -i"
|
|
|
|
|
2020-11-01 16:33:10 +01:00
|
|
|
# octave
|
|
|
|
alias octave="octave --persist"
|
|
|
|
|
2019-10-03 18:07:08 +02:00
|
|
|
# pacman
|
|
|
|
alias pac="sudo pacman"
|
|
|
|
|
|
|
|
# ping
|
|
|
|
alias ping="ping -c 5"
|
|
|
|
|
|
|
|
# rm
|
2020-06-06 15:02:21 +02:00
|
|
|
alias rm="rm -i"
|
2019-10-03 18:07:08 +02:00
|
|
|
|
2022-08-07 14:24:23 +02:00
|
|
|
# rsync
|
2022-08-07 15:03:11 +02:00
|
|
|
alias rsync="rsync -vh --progress --partial"
|
2022-08-07 14:24:23 +02:00
|
|
|
|
2019-10-03 18:07:08 +02:00
|
|
|
# root/sudo
|
|
|
|
alias su="sudo -i"
|
2020-05-30 20:02:50 +02:00
|
|
|
alias sudo="sudo "
|
2019-10-03 18:07:08 +02:00
|
|
|
|
2023-01-11 04:36:24 +01:00
|
|
|
# sc-im
|
2019-12-02 23:49:21 +01:00
|
|
|
alias sc="sc-im"
|
2019-12-02 18:20:20 +01:00
|
|
|
|
2023-01-11 04:36:24 +01:00
|
|
|
# screenkey
|
|
|
|
|
|
|
|
alias keys="screenkey"
|
|
|
|
|
2019-11-01 11:15:16 +01:00
|
|
|
# script
|
|
|
|
alias scriptclear="cat typescript | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g' | col -b > typescript-processed"
|
|
|
|
|
2020-03-24 19:21:27 +01:00
|
|
|
# tmux
|
|
|
|
alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"
|
|
|
|
|
2019-10-03 18:07:08 +02:00
|
|
|
# nvim
|
|
|
|
alias svim="sudo nvim"
|
2019-12-02 18:20:20 +01:00
|
|
|
alias svi="sudo nvim"
|
2019-10-03 18:07:08 +02:00
|
|
|
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d"
|
2019-12-02 18:20:20 +01:00
|
|
|
command -v nvim >/dev/null && alias vi="nvim" vidiff="nvim -d"
|
2019-10-03 18:07:08 +02:00
|
|
|
|
|
|
|
# weather
|
|
|
|
alias weather="curl wttr.in"
|
2020-03-24 19:21:27 +01:00
|
|
|
|
2020-11-07 01:21:34 +01:00
|
|
|
# wget
|
2020-03-24 19:21:27 +01:00
|
|
|
alias wget="wget --hsts-file=$XDG_CACHE_HOME/wget-hsts"
|
2020-11-07 01:21:34 +01:00
|
|
|
|
2020-12-17 13:56:27 +01:00
|
|
|
# yay
|
2020-12-27 19:27:11 +01:00
|
|
|
alias yay="yay --sudoloop --noredownload --norebuild"
|
2020-12-17 13:56:27 +01:00
|
|
|
|
2020-11-07 01:21:34 +01:00
|
|
|
# youtube-dl
|
2023-07-16 02:54:22 +02:00
|
|
|
alias yta="yt-dlp -f 'bestaudio[ext=m4a]'"
|
|
|
|
alias ytv="yt-dlp -f 'bestvide[ext=mp4]+bestaudio[ext=m4a]'"
|
|
|
|
alias yta2c="yt-dlp --external-downloader aria2c --external-downloader-args '-j 16 -x 16 -s 16 -k 2M' -f 'bestaudio/best'"
|
|
|
|
alias ytv2c="yt-dlp --external-downloader aria2c --external-downloader-args '-j 16 -x 16 -s 16 -k 2M' -f 'bestvideo[height>=720]+bestaudio/best'"
|