~saiko/dotfiles

89284bf3552b66568b36127f226fabbb127414b5 — 2xsaiko 20 days ago 937b2b3
Update zshrc
1 files changed, 20 insertions(+), 10 deletions(-)

M zshrc
M zshrc => zshrc +20 -10
@@ 1,26 1,36 @@
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
if [[ -f /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh ]]; then
  source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
fi

if [[ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then
  source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
elif [[ -f /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh ]]; then
  source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
fi

export PATH="$HOME/bin:$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
fpath=("$HOME/.local/share/zsh/functions" $fpath)

NEEDS_ROOT=(
  rc-service
  rc-update
)

for entry in $NEEDS_ROOT; do
  alias "$entry"="sudo $entry"
done

alias pacman=yay
alias g=git

alias sudo='sudo '
alias xbi=xbps-install
alias xbr=xbps-remove
alias xbq=xbps-query
alias xbrc=xbps-reconfigure
if [[ -f /usr/bin/pacman ]]; then
  alias pacman=yay
fi

if [[ -f /usr/bin/xbps-install ]]; then
  alias sudo='sudo '
  alias xbi=xbps-install
  alias xbr=xbps-remove
  alias xbq=xbps-query
  alias xbrc=xbps-reconfigure
fi

function dlmusic() {
  youtube-dl -io '%(title)s.%(ext)s' -f bestaudio "${@}"