2022-08-13 05:26:11 +00:00
|
|
|
#better commands
|
|
|
|
alias ls="ls -hN --color=auto --group-directories-first"
|
|
|
|
alias wget='wget --hsts-file ~/.config/wget/wget-hsts'
|
|
|
|
|
2023-03-21 04:03:17 +00:00
|
|
|
#command fixes
|
|
|
|
alias ssh="TERM=xterm-256color ssh" #fix issues with TERM=foot not being defined by terminfo
|
|
|
|
alias distrobox='TERM=xterm-256color distrobox'
|
2022-08-13 05:26:11 +00:00
|
|
|
alias vim='nvim'
|
|
|
|
alias mbsync="mbsync -c $HOME/.config/mbsync/config"
|
|
|
|
|
|
|
|
#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/'
|
|
|
|
|
|
|
|
#programs
|
2022-09-25 06:54:32 +00:00
|
|
|
alias trc="tremc -c @$TRNS_IP:9091"
|
2022-08-13 05:26:11 +00:00
|
|
|
alias pm='pulsemixer'
|
2023-03-30 03:12:59 +00:00
|
|
|
alias vimw='nvim -c VimwikiIndex'
|
2022-08-13 05:26:11 +00:00
|
|
|
|
|
|
|
#Youtube
|
|
|
|
alias yv='pipe-viewer --resolution=480p'
|
2023-03-21 04:03:17 +00:00
|
|
|
alias yd='yt-dlp'
|
2022-08-13 05:26:11 +00:00
|
|
|
|
|
|
|
#dotfiles configuration alias
|
|
|
|
alias config='git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
|
|
|
|
|
2023-02-12 07:23:29 +00:00
|
|
|
|
2022-08-13 05:26:11 +00:00
|
|
|
note() {
|
|
|
|
NOTEFILE="$HOME/.cache/notes"
|
|
|
|
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"
|
|
|
|
else
|
|
|
|
echo "$@" >> "$NOTEFILE"
|
|
|
|
fi
|
|
|
|
}
|