2020-02-21 20:10:12 +01:00
|
|
|
#
|
|
|
|
# ~/.bashrc
|
|
|
|
#
|
|
|
|
|
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
|
|
|
export HISTCONTROL=ignoreboth:erasedups
|
|
|
|
|
|
|
|
PS1='[\u@\h \W]\$ '
|
|
|
|
|
|
|
|
if [ -d "$HOME/.bin" ] ;
|
|
|
|
then PATH="$HOME/.bin:$PATH"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d "$HOME/.local/bin" ] ;
|
|
|
|
then PATH="$HOME/.local/bin:$PATH"
|
|
|
|
fi
|
|
|
|
|
2020-10-27 11:56:49 +01:00
|
|
|
if [ -d "$HOME/.emacs.d/bin/" ] ;
|
|
|
|
then PATH="$HOME/.emacs.d/bin/:$PATH"
|
|
|
|
fi
|
|
|
|
|
2020-11-10 16:05:01 +01:00
|
|
|
# environment variables
|
2021-02-10 11:04:01 +01:00
|
|
|
#export VISUAL="/usr/bin/emacs --no-window-system"
|
|
|
|
#export EDITOR="/usr/bin/emacs --no-window-system"
|
|
|
|
export VISUAL="/usr/bin/vim"
|
|
|
|
export EDITOR="/usr/bin/vim"
|
2020-10-27 11:56:49 +01:00
|
|
|
|
2020-02-29 15:39:31 +01:00
|
|
|
#update config
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias upconf='$HOME/scripts/arcolinux-config.sh'
|
2020-02-21 20:10:12 +01:00
|
|
|
|
|
|
|
#list
|
|
|
|
alias ls='ls --color=auto'
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias la='ls -a'
|
|
|
|
#alias ll='ls -la'
|
|
|
|
#alias l='ls'
|
|
|
|
#alias l.="ls -A | egrep '^\.'"
|
2020-02-21 20:10:12 +01:00
|
|
|
|
|
|
|
#fix obvious typo's
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias cd..='cd ..'
|
2020-02-21 20:10:12 +01:00
|
|
|
|
|
|
|
## Colorize the grep command output for ease of use (good for log files)##
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
alias egrep='egrep --color=auto'
|
|
|
|
alias fgrep='fgrep --color=auto'
|
|
|
|
|
|
|
|
#continue download
|
|
|
|
alias wget="wget -c"
|
|
|
|
|
|
|
|
# Aliases for software managment
|
2020-12-28 19:41:56 +01:00
|
|
|
alias pacman='pacman --color auto'
|
|
|
|
#alias update='yay -Syu'
|
|
|
|
alias update='paru -Syu --sudoloop --newsonupgrade'
|
2020-02-21 20:10:12 +01:00
|
|
|
|
|
|
|
#grub update
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
2020-02-21 20:10:12 +01:00
|
|
|
|
|
|
|
#check vulnerabilities microcode
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias microcode='grep . /sys/devices/system/cpu/vulnerabilities/*'
|
2020-02-21 20:10:12 +01:00
|
|
|
|
|
|
|
#get fastest mirrors in your neighborhood
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
|
|
|
#alias mirror-delay="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
|
|
|
#alias mirror-score="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
|
|
|
#alias mirror-age="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
2020-02-21 20:10:12 +01:00
|
|
|
|
|
|
|
#mounting the folder Public for exchange between host and guest on virtualbox
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias vbm="sudo mount -t vboxsf -o rw,uid=1000,gid=1000 Public /home/$USER/Public"
|
2020-02-21 20:10:12 +01:00
|
|
|
|
|
|
|
#youtube-dl
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias yta-aac="youtube-dl --extract-audio --audio-format aac "
|
|
|
|
#alias yta-best="youtube-dl --extract-audio --audio-format best "
|
|
|
|
#alias yta-flac="youtube-dl --extract-audio --audio-format flac "
|
|
|
|
#alias yta-m4a="youtube-dl --extract-audio --audio-format m4a "
|
|
|
|
#alias yta-mp3="youtube-dl --extract-audio --audio-format mp3 "
|
|
|
|
#alias yta-opus="youtube-dl --extract-audio --audio-format opus "
|
|
|
|
#alias yta-vorbis="youtube-dl --extract-audio --audio-format vorbis "
|
|
|
|
#alias yta-wav="youtube-dl --extract-audio --audio-format wav "
|
2020-02-21 20:10:12 +01:00
|
|
|
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
2020-02-21 20:10:12 +01:00
|
|
|
|
|
|
|
#Cleanup orphaned packages
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias cleanup='sudo pacman -Rns $(pacman -Qtdq)'
|
2020-02-21 20:10:12 +01:00
|
|
|
|
|
|
|
#get the error messages from journalctl
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias jctl="journalctl -p 3 -xb"
|
2020-02-21 20:10:12 +01:00
|
|
|
|
|
|
|
#shutdown or reboot
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias ssn="sudo shutdown now"
|
|
|
|
#alias sr="sudo reboot"
|
2020-02-21 20:10:12 +01:00
|
|
|
|
2020-02-29 15:20:01 +01:00
|
|
|
#cpu-x as sudo
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias cpu-x="sudo cpu-x"
|
2020-02-29 15:20:01 +01:00
|
|
|
|
2020-02-21 20:10:12 +01:00
|
|
|
# # ex = EXtractor for all kinds of archives
|
|
|
|
# # usage: ex <file>
|
2020-10-27 11:56:49 +01:00
|
|
|
#ex ()
|
|
|
|
#{
|
|
|
|
# if [ -f $1 ] ; then
|
|
|
|
# case $1 in
|
|
|
|
# *.tar.bz2) tar xjf $1 ;;
|
|
|
|
# *.tar.gz) tar xzf $1 ;;
|
|
|
|
# *.bz2) bunzip2 $1 ;;
|
|
|
|
# *.rar) unrar x $1 ;;
|
|
|
|
# *.gz) gunzip $1 ;;
|
|
|
|
# *.tar) tar xf $1 ;;
|
|
|
|
# *.tbz2) tar xjf $1 ;;
|
|
|
|
# *.tgz) tar xzf $1 ;;
|
|
|
|
# *.zip) unzip $1 ;;
|
|
|
|
# *.Z) uncompress $1;;
|
|
|
|
# *.7z) 7z x $1 ;;
|
|
|
|
# *.deb) ar x $1 ;;
|
|
|
|
# *.tar.xz) tar xf $1 ;;
|
|
|
|
# *) echo "'$1' cannot be extracted via ex()" ;;
|
|
|
|
# esac
|
|
|
|
# else
|
|
|
|
# echo "'$1' is not a valid file"
|
|
|
|
# fi
|
|
|
|
#}
|
2020-02-21 20:10:12 +01:00
|
|
|
|
2020-08-26 21:48:53 +02:00
|
|
|
#execute stuff
|
2020-09-27 13:59:09 +02:00
|
|
|
neofetch
|