Add .emacs.d/bin to PATH
- Also commented most things in .bashrc
This commit is contained in:
parent
7baa32000e
commit
f5c81142f8
@ -17,18 +17,23 @@ if [ -d "$HOME/.local/bin" ] ;
|
|||||||
then PATH="$HOME/.local/bin:$PATH"
|
then PATH="$HOME/.local/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d "$HOME/.emacs.d/bin/" ] ;
|
||||||
|
then PATH="$HOME/.emacs.d/bin/:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#update config
|
#update config
|
||||||
alias upconf='$HOME/scripts/arcolinux-config.sh'
|
#alias upconf='$HOME/scripts/arcolinux-config.sh'
|
||||||
|
|
||||||
#list
|
#list
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias la='ls -a'
|
#alias la='ls -a'
|
||||||
alias ll='ls -la'
|
#alias ll='ls -la'
|
||||||
alias l='ls'
|
#alias l='ls'
|
||||||
alias l.="ls -A | egrep '^\.'"
|
#alias l.="ls -A | egrep '^\.'"
|
||||||
|
|
||||||
#fix obvious typo's
|
#fix obvious typo's
|
||||||
alias cd..='cd ..'
|
#alias cd..='cd ..'
|
||||||
|
|
||||||
## Colorize the grep command output for ease of use (good for log files)##
|
## Colorize the grep command output for ease of use (good for log files)##
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
@ -43,70 +48,70 @@ alias pacman='sudo pacman --color auto'
|
|||||||
alias update='yay -Syu'
|
alias update='yay -Syu'
|
||||||
|
|
||||||
#grub update
|
#grub update
|
||||||
alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
#alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
||||||
|
|
||||||
#check vulnerabilities microcode
|
#check vulnerabilities microcode
|
||||||
alias microcode='grep . /sys/devices/system/cpu/vulnerabilities/*'
|
#alias microcode='grep . /sys/devices/system/cpu/vulnerabilities/*'
|
||||||
|
|
||||||
#get fastest mirrors in your neighborhood
|
#get fastest mirrors in your neighborhood
|
||||||
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
#alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
||||||
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
#alias mirror-delay="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
||||||
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
#alias mirror-score="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
||||||
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
#alias mirror-age="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
||||||
|
|
||||||
#mounting the folder Public for exchange between host and guest on virtualbox
|
#mounting the folder Public for exchange between host and guest on virtualbox
|
||||||
alias vbm="sudo mount -t vboxsf -o rw,uid=1000,gid=1000 Public /home/$USER/Public"
|
#alias vbm="sudo mount -t vboxsf -o rw,uid=1000,gid=1000 Public /home/$USER/Public"
|
||||||
|
|
||||||
#youtube-dl
|
#youtube-dl
|
||||||
alias yta-aac="youtube-dl --extract-audio --audio-format aac "
|
#alias yta-aac="youtube-dl --extract-audio --audio-format aac "
|
||||||
alias yta-best="youtube-dl --extract-audio --audio-format best "
|
#alias yta-best="youtube-dl --extract-audio --audio-format best "
|
||||||
alias yta-flac="youtube-dl --extract-audio --audio-format flac "
|
#alias yta-flac="youtube-dl --extract-audio --audio-format flac "
|
||||||
alias yta-m4a="youtube-dl --extract-audio --audio-format m4a "
|
#alias yta-m4a="youtube-dl --extract-audio --audio-format m4a "
|
||||||
alias yta-mp3="youtube-dl --extract-audio --audio-format mp3 "
|
#alias yta-mp3="youtube-dl --extract-audio --audio-format mp3 "
|
||||||
alias yta-opus="youtube-dl --extract-audio --audio-format opus "
|
#alias yta-opus="youtube-dl --extract-audio --audio-format opus "
|
||||||
alias yta-vorbis="youtube-dl --extract-audio --audio-format vorbis "
|
#alias yta-vorbis="youtube-dl --extract-audio --audio-format vorbis "
|
||||||
alias yta-wav="youtube-dl --extract-audio --audio-format wav "
|
#alias yta-wav="youtube-dl --extract-audio --audio-format wav "
|
||||||
|
|
||||||
alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
#alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
||||||
|
|
||||||
#Cleanup orphaned packages
|
#Cleanup orphaned packages
|
||||||
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)'
|
#alias cleanup='sudo pacman -Rns $(pacman -Qtdq)'
|
||||||
|
|
||||||
#get the error messages from journalctl
|
#get the error messages from journalctl
|
||||||
alias jctl="journalctl -p 3 -xb"
|
#alias jctl="journalctl -p 3 -xb"
|
||||||
|
|
||||||
#shutdown or reboot
|
#shutdown or reboot
|
||||||
alias ssn="sudo shutdown now"
|
#alias ssn="sudo shutdown now"
|
||||||
alias sr="sudo reboot"
|
#alias sr="sudo reboot"
|
||||||
|
|
||||||
#cpu-x as sudo
|
#cpu-x as sudo
|
||||||
alias cpu-x="sudo cpu-x"
|
#alias cpu-x="sudo cpu-x"
|
||||||
|
|
||||||
# # ex = EXtractor for all kinds of archives
|
# # ex = EXtractor for all kinds of archives
|
||||||
# # usage: ex <file>
|
# # usage: ex <file>
|
||||||
ex ()
|
#ex ()
|
||||||
{
|
#{
|
||||||
if [ -f $1 ] ; then
|
# if [ -f $1 ] ; then
|
||||||
case $1 in
|
# case $1 in
|
||||||
*.tar.bz2) tar xjf $1 ;;
|
# *.tar.bz2) tar xjf $1 ;;
|
||||||
*.tar.gz) tar xzf $1 ;;
|
# *.tar.gz) tar xzf $1 ;;
|
||||||
*.bz2) bunzip2 $1 ;;
|
# *.bz2) bunzip2 $1 ;;
|
||||||
*.rar) unrar x $1 ;;
|
# *.rar) unrar x $1 ;;
|
||||||
*.gz) gunzip $1 ;;
|
# *.gz) gunzip $1 ;;
|
||||||
*.tar) tar xf $1 ;;
|
# *.tar) tar xf $1 ;;
|
||||||
*.tbz2) tar xjf $1 ;;
|
# *.tbz2) tar xjf $1 ;;
|
||||||
*.tgz) tar xzf $1 ;;
|
# *.tgz) tar xzf $1 ;;
|
||||||
*.zip) unzip $1 ;;
|
# *.zip) unzip $1 ;;
|
||||||
*.Z) uncompress $1;;
|
# *.Z) uncompress $1;;
|
||||||
*.7z) 7z x $1 ;;
|
# *.7z) 7z x $1 ;;
|
||||||
*.deb) ar x $1 ;;
|
# *.deb) ar x $1 ;;
|
||||||
*.tar.xz) tar xf $1 ;;
|
# *.tar.xz) tar xf $1 ;;
|
||||||
*) echo "'$1' cannot be extracted via ex()" ;;
|
# *) echo "'$1' cannot be extracted via ex()" ;;
|
||||||
esac
|
# esac
|
||||||
else
|
# else
|
||||||
echo "'$1' is not a valid file"
|
# echo "'$1' is not a valid file"
|
||||||
fi
|
# fi
|
||||||
}
|
#}
|
||||||
|
|
||||||
#execute stuff
|
#execute stuff
|
||||||
neofetch
|
neofetch
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#vi mode for fish
|
#vi mode for fish
|
||||||
fish_vi_key_bindings
|
#fish_vi_key_bindings
|
||||||
|
|
||||||
#update config
|
#update config
|
||||||
alias upconf='~/scripts/arcolinux-config.sh'
|
alias upconf='~/scripts/arcolinux-config.sh'
|
||||||
@ -7,21 +7,18 @@ alias upconf='~/scripts/arcolinux-config.sh'
|
|||||||
#download & execute setup
|
#download & execute setup
|
||||||
alias setup='git clone https://gitlab.com/RealStickman-arcolinux/setup && cd setup && bash install.sh'
|
alias setup='git clone https://gitlab.com/RealStickman-arcolinux/setup && cd setup && bash install.sh'
|
||||||
|
|
||||||
#doom
|
|
||||||
alias dooma='$HOME/.emacs.d/bin/doom'
|
|
||||||
|
|
||||||
#notification
|
#notification
|
||||||
alias notify='notify-send "Terminal" "Your command finished!" --icon=dialog-information'
|
alias notify='notify-send "Terminal" "Your command finished!" --icon=dialog-information'
|
||||||
|
|
||||||
#list
|
#list
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias la='ls -a'
|
#alias la='ls -a'
|
||||||
alias ll='ls -la'
|
#alias ll='ls -la'
|
||||||
alias l='ls'
|
#alias l='ls'
|
||||||
alias l.="ls -A | egrep '^\.'"
|
#alias l.="ls -A | egrep '^\.'"
|
||||||
|
|
||||||
# fix obvious typo's
|
# fix obvious typo's
|
||||||
alias cd..='cd ..'
|
#alias cd..='cd ..'
|
||||||
|
|
||||||
## Colorize the grep command output for ease of use (good for log files)##
|
## Colorize the grep command output for ease of use (good for log files)##
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
@ -35,9 +32,6 @@ alias wget="wget -c"
|
|||||||
alias pacman='sudo pacman --color auto'
|
alias pacman='sudo pacman --color auto'
|
||||||
alias update='yay -Syu'
|
alias update='yay -Syu'
|
||||||
|
|
||||||
#trizen updates everything
|
|
||||||
alias upall="yay -Syu --noconfirm && bash $HOME/scripts/arcolinux-config.sh"
|
|
||||||
|
|
||||||
#grub update
|
#grub update
|
||||||
alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
||||||
|
|
||||||
@ -46,12 +40,12 @@ alias microcode='grep . /sys/devices/system/cpu/vulnerabilities/*'
|
|||||||
|
|
||||||
#get fastest mirrors in your neighborhood
|
#get fastest mirrors in your neighborhood
|
||||||
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
||||||
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
alias mirror-delay="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
||||||
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
alias mirror-score="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
||||||
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
alias mirror-age="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
||||||
|
|
||||||
#mounting the folder Public for exchange between host and guest on virtualbox
|
#mounting the folder Public for exchange between host and guest on virtualbox
|
||||||
alias vbm="sudo mount -t vboxsf -o rw,uid=1000,gid=1000 Public /home/$USER/Public"
|
#alias vbm="sudo mount -t vboxsf -o rw,uid=1000,gid=1000 Public /home/$USER/Public"
|
||||||
|
|
||||||
#youtube-dl
|
#youtube-dl
|
||||||
alias yta-aac="youtube-dl --extract-audio --audio-format aac "
|
alias yta-aac="youtube-dl --extract-audio --audio-format aac "
|
||||||
@ -69,7 +63,7 @@ alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
|||||||
alias cleanup='sudo pacman -Rns (pacman -Qtdq)'
|
alias cleanup='sudo pacman -Rns (pacman -Qtdq)'
|
||||||
|
|
||||||
#get the error messages from journalctl
|
#get the error messages from journalctl
|
||||||
alias jctl="journalctl -p 3 -xb"
|
#alias jctl="journalctl -p 3 -xb"
|
||||||
|
|
||||||
#cpu-x as sudo
|
#cpu-x as sudo
|
||||||
alias cpu-x="sudo cpu-x"
|
alias cpu-x="sudo cpu-x"
|
||||||
|
Loading…
Reference in New Issue
Block a user