THEAARBS alias rc

Raw

#!/bin/bash
#        _ _
#   __ _| (_) __ _ ___ _ __ ___
#  / _` | | |/ _` / __| '__/ __|
# | (_| | | | (_| \__ \ | | (__
#  \__,_|_|_|\__,_|___/_|  \___|
#
# ~/.config/aliasrc

alias ka="killall" \
  sdn="checkout ; sudo shutdown now" \
  reboot="checkout ; sudo reboot now" \
  newnet="sudo systemctl restart NetworkManager" \
  psref="gpg-connect-agent RELOADAGENT /bye" \
  atltime="sudo timedatectl set-timezone America/New_York" \
  tuctime="sudo timedatectl set-timezone America/Phoenix" \
  ls="ls --color=auto --group-directories-first -h" \
  mi="clear && sudo make clean install" \
  crep="grep --color=always" \
  ccat="highlight --out-format=xterm256" \
  progs="pacman -Qet" \
  orphans="pacman -Qdt" \
  upgr="neofetch && sudo pacman -Syyu --noconfirm && unix && notify-send '📦 Update complete.' && echo Update complete. | figlet" \
  pacrepo="sudo reflector -l 20 -f 10 --save /etc/pacman.d/mirrorlist" \
  pacman="sudo pacman" \
  journalctl="sudo journalctl" \
  pacu="sudo pacman -Syu --noconfirm" \
  systemctl="sudo systemctl"

# Program aliases
alias calcurse="calcurse -D ~/.config/calcurse" \
  calendar="calcurse -D ~/.config/calcurse" \
  aud="pulsemixer" \
  tmux="tmux -f ~/.config/tmux/tmux.conf" \
  tm="tmux -f ~/.config/tmux/tmux.conf" \
  v="vim" \
  sv="sudo vim" \
  r="ranger" \
  sr="sudo ranger" \
  files="ranger" \
  pushkey="ssh-copy-id -i ~/.ssh/id_rsa.pub" \
  g="git" \
  email="neomutt" \
  mcabber="mcabber -f ~/.config/mcabber/mcabberrc" \
  jabber="mcabber -f ~/.config/mcabber/mcabberrc" \
  www="w3m" \
  mus="ncmpcpp" \
  news="newsboat" \
  reddit="rtv" \
  disks="gnome-disks" \
  bcdl="bandcamp-dl" \
  ytdl="youtube-dl" \
  note="vim ~/Documents/Note.md" \
  nf="clear && neofetch" \
  chat="mkdir -p ~/Logs/irc ; sic -h chat.freenode.com | tee ~/Logs/irc/$(date +%m%d)$(date +%H%M)chat.log" \
  cchat="mkdir -p ~/Logs/irc ; sic -h chat.freenode.com | tee ~/Logs/irc/$(date +%m%d)$(date +%H%M)chat.log | lolcat" \
  mapscii="telnet mapscii.me" \
  speedtest="speedtest | lolcat"

# Navigation shortcuts
alias d="cd ~/Documents && ls -a" \
  P="cd ~/Projects && ls -a" \
  D="cd ~/Downloads && ls -a" \
  m="cd ~/Music && ls -a" \
  pp="cd ~/Pictures && ls -a" \
  vv="cd ~/Videos && ls -a" \
  s="cd ~/.local/bin && ls -a" \
  n="cd ~/Documents/networks && ls -a" \
  cf="cd ~/.config && ls -a" \
  mkd="mkdir -pv" \
  rf="source ~/.bashrc"

# Scripts
alias push="syncworkflow up" \
  pull="syncworkflow down" \
  ci="checkin" \
  co="checkin checkout" \
  checkout="checkin checkout" \
  pwgen="genpw" \
  fs="findstring" \
  rs="replacespaces" \
  te="timeentry" \
  repo="~/Projects/syncrepo.sh"

vf() { $EDITOR $(fzf) ; }
se() { cd ~/.local/bin ; $EDITOR $(fzf) ;}

categories · links · piano · posts · scripts · THEAARBS · home