dotfiles-old/.config/aliasrc

67 lines
1.7 KiB
Plaintext
Raw Normal View History

2022-03-10 03:42:22 +00:00
#better commands
alias ls="ls -hN --color=auto --group-directories-first"
alias wget='wget --hsts-file ~/.config/wget/wget-hsts'
#git
alias gs='git status | less'
#xbps
2022-03-24 05:05:35 +00:00
#alias xi='sudo xbps-install'
#alias xq='xbps-query'
#alias xr='sudo xbps-remove'
2022-03-10 03:42:22 +00:00
alias vim='nvim'
2022-03-24 05:05:35 +00:00
alias mbsync="mbsync -c $HOME/.config/mbsync/config"
2022-03-10 03:42:22 +00:00
#alias setwp='wal -s -t -e -i '
#shortend commands
alias btc='bluetoothctl'
#sfeed
alias sf='sfeed_curses ~/.local/share/sfeed/feeds/*'
alias sfu='sfeed_update ~/.config/sfeed/sfeedrc'
alias sfc='rm -r ~/.local/share/sfeed/feeds/*'
alias sfe='$EDITOR ~/.config/sfeed/sfeedrc'
#alias mocp='mocp -M ~/.config/moc/' #-T transparent-background'
#alias glrun='proot -r ~/.local/share/void-glibc -b /home/'
alias mpvyl='mpv --ytdl-format=18 '
#system power
alias poweroff='sudo poweroff'
alias reboot='sudo reboot'
alias shutdown='sudo shutdown'
#programs
alias trc='tremc -c @nagato:9091'
alias pm='pulsemixer'
#Youtube
alias yv='pipe-viewer --resolution=480p'
alias yd='youtube-dl'
#dotfiles configuration alias
2022-06-10 02:06:39 +00:00
alias config='git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
2022-03-10 03:42:22 +00:00
alias chrome='firejail chromium --ozone-platform-hint=auto'
2022-03-10 03:42:22 +00:00
note() {
NOTEFILE="$HOME/.cache/notes"
2022-03-10 03:42:22 +00:00
if [ "$#" -lt 1 ]; then
cat "$NOTEFILE"
elif [ "$1" = "-e" ]; then
$EDITOR "$NOTEFILE"
elif [ "$1" = "-h" ]; then
echo " usage: note this is a note"
echo " the line: \"this is a note\" is stored as a line in the file $NOTEFILE"
echo ""
echo " run this without arguments to view the contents of $NOTEFILE"
echo " -e -> edit note file with \$EDITOR"
echo " -h -> print this help menu"
2022-03-10 03:42:22 +00:00
else
echo "$@" >> "$NOTEFILE"
fi
}