#/bin/bash
#clear
#     _    _           ____  ____        _ _
#    / \  | | _____  _|  _ \| __ )  __ _| | |
#   / _ \ | |/ _ \ \/ / | | |  _ \ / _` | | |
#  / ___ \| |  __/>  <| |_| | |_) | (_| | | |
# /_/   \_\_|\___/_/\_\____/|____/ \__,_|_|_|
#
#		Bash aliases file
#   	Created by : AlexDBall
#   	Created on : 21-03-03
#		Updated on : 03-01-22

# Console / Terminal
alias q="exit"
alias c="clear"
alias cl='source ~/.bashrc && clear'

# Set grep color and case insentive options
alias grep="grep -i --color=yes"

# Set watch color and show differences
alias watch="watch -c -d"

# LS Aliases
alias l='ls -CF'
alias la='ls -lA'
alias ll='ls -alF'
alias ls='ls --color=auto'

# Set nano to run the custom bash script for auto backups
#alias nano="$HOME/scripts/system/nano.sh"
alias nano="$HOME/.local/bin/nano.sh"

#Set youtube-dl options
alias ytdlist="youtube-dl -a"
alias ytmp3="youtube-dl --extract-audio --audio-format mp3"

# du aliases
alias du='du -hs'
alias dua='du -hs *'
alias df='df -h'
alias diskusage='df -h / /home'

# mpv aliases
alias mpvm='mpv --mute=yes'

# Awesome aliases
alias awconf='cd ~/.config/awesome'
alias awrc='codium ~/.config/awesome/rc.lua'
alias awdev='codium ~/.config/awesome/'

# Dev Aliases
alias web='cd /var/www/'
alias webdev='codium /var/www'

# Python alias
alias py='python3'

# Git aliases
alias dotconfig='/usr/bin/git --git-dir=/home/adb/.dotfiles --work-tree=$HOME'

# Log aliases
alias jctl='journalctl -xe'

# History
alias hs="history | grep -i "
alias rndman="find /usr/share/man/man1 -type f | shuf | awk -F '/' '{ print }' | head -1 | xargs man"
