_                _   _                 ____            _     _ 	
   / \   _ __   ___ | |_| |__   ___ _ __  |  _ \ _ __ ___ (_) __| |	
  / _ \ | '_ \ / _ \| __| '_ \ / _ \ '__| | | | | '__/ _ \| |/ _\` |	
 / ___ \| | | | (_) | |_| | | |  __/ |    | |_| | | | (_) | | (_| |	
/_/   \_\_| |_|\___/ \__|_| |_|\___|_|    |____/|_|  \___/|_|\__,_|	
                                                                bbs
  XQTRs lair...
Home // Blog // NULL emag. // Files // Docs // Tutors // GitHub repo
#------------------------------------------------------
# Vars and configs
#------------------------------------------------------
# find alternative apps if it is installed on your system
find_alt() { for i;do which "$i" >/dev/null && { echo "$i"; return 0;};done;return 1; }
# Use the first program that it detects in the array as the default app
export OPENER=$(find_alt xdg-open exo-open gnome-open )
export BROWSER=$(find_alt firefox chromium chromium-browser google-chrome $OPENER )
export BROWSERCLI=$(find_alt links2 links lynx w3m elinks $OPENER )
export EDITOR=$(find_alt nano efte $OPENER )
export FILEMANAGER=$(find_alt pcmanfm thunar nautilus dolphin spacefm enlightenment_filemanager $OPENER )
export MUSICER=$(find_alt mocp mplayer mpg123 cvlc $OPENER )
export PAGER=$(find_alt less more most)
export PLAYER=$(find_alt mplayer cvlc $OPENER )
export IMAGEVIEWER=$(find_alt feh display eog $OPENER )

# main path
export path_doc=~/Documents
export path_dl=~/Downloads
export path_pic=~/Pictures
export path_pub=~/Public
export path_storage=~/Storage
export path_vids=~/Videos
export path_scripts=~/scripts

#------------------------------------------------------
# Config
#------------------------------------------------------
cfg-group() { sudo $EDITOR /etc/group ;}
cfg-hosts() { sudo $EDITOR /etc/hosts ;}
cfg-nanorc() { $EDITOR ~/.nanorc;}
cfg-sudoers() { sudo $EDITOR /etc/sudoers ;}
cfg-sourcelist() { sudo $EDITOR /etc/apt/sources.list ;}
cfg-tmuxrc() { $EDITOR ~/.tmux.conf ;}
cfg-aliases() { $EDITOR ~/.bash_aliases ;}
#------------------------------------------------------

alias l='ls'
alias ..='cd ..'

#------------------------------------------------------
# Various Aliases
#------------------------------------------------------

alias aliases='cat ~/.bash_aliases | less'
alias wget='wget -c' 
alias lsd='ls -1d */' 
alias free='free -h' 
alias fte='sfte'
#Aliases
alias aliaslist='cat ~/.bashrc'
alias aliasedit='nano ~/.bashrc'
#Apt-Get
alias install='pkg install'
alias remove='pkg remove'
alias update='pkg update'
alias upgrade='pkg upgrade'
alias search='pkg search'
alias dirsize='du -hs'
alias finddevices='nmap -sP 192.168.1.1/24'
alias q="exit"

#youtube
alias utmp3='youtube-dl -R5 -t -c --extract-audio --audio-format=mp3 ' 
alias hate-mp3='utmp3 https://www.youtube.com/channel/UC6qQOTx9LuKMC5p2dbjmSRg --playlist-start 1 --playlist-end 20'
alias utmp4='youtube-dl -R5 -t -c '