Update .bashrc

This commit is contained in:
Clay Gomera 2022-05-02 10:13:01 -04:00 committed by GitHub
parent 0f97b3b8b4
commit 4e4d219e87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

22
.bashrc
View file

@ -9,6 +9,8 @@
export TERM="xterm-256color" # getting proper colors export TERM="xterm-256color" # getting proper colors
export HISTCONTROL=ignoredups:erasedups # no duplicate entries export HISTCONTROL=ignoredups:erasedups # no duplicate entries
export EDITOR="nvim" # $EDITOR use neovim export EDITOR="nvim" # $EDITOR use neovim
#export EDITOR="emacsclient -t -a ''" # $EDITOR use Emacs in terminal
#export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
export READER="zathura" export READER="zathura"
export TERMINAL="alacritty" export TERMINAL="alacritty"
export BROWSER="qutebrowser" export BROWSER="qutebrowser"
@ -135,6 +137,15 @@ alias \
# bat as cat # bat as cat
[ -x "$(command -v bat)" ] && alias cat="bat" [ -x "$(command -v bat)" ] && alias cat="bat"
# DOOM Emacs
[ -x "$(command -v emacs)" ] && alias \
em="/usr/bin/emacs -nw" \
emacs="emacsclient -c -a 'emacs'" \
doomsync="~/.emacs.d/bin/doom sync" \
doomdoctor="~/.emacs.d/bin/doom doctor" \
doomupgrade="~/.emacs.d/bin/doom upgrade" \
doompurge="~/.emacs.d/bin/doom purge"
# Changing "ls" to "exa" # Changing "ls" to "exa"
alias \ alias \
ls="exa -al --color=always --group-directories-first" \ ls="exa -al --color=always --group-directories-first" \
@ -144,7 +155,7 @@ alias \
l.='exa -a | egrep "^\."' l.='exa -a | egrep "^\."'
# xbps # xbps
alias \ [ -x "$(command -v xbps-query)" ] && alias \
xb-up="sudo xbps-install -Su && xcheckrestart" \ xb-up="sudo xbps-install -Su && xcheckrestart" \
xb-get="sudo xbps-install -S" \ xb-get="sudo xbps-install -S" \
xb-rmv="sudo xbps-remove -R" \ xb-rmv="sudo xbps-remove -R" \
@ -152,6 +163,15 @@ alias \
xb-qry="sudo xbps-query" \ xb-qry="sudo xbps-query" \
xb-cln="sudo xbps-remove -o && sudo xbps-remove -O" xb-cln="sudo xbps-remove -o && sudo xbps-remove -O"
# pacman
[ -x "$(command -v pacman)" ] && alias \
pac-up="sudo pacman -Syyu" \
pac-get="sudo pacman -S" \
pac-rmv="sudo pacman -Rcns" \
pac-rmv-sec="sudo pacman -Runs" \
pac-qry="sudo pacman -Ss" \
pac-cln="sudo pacman -Scc"
# colorize grep output (good for log files) # colorize grep output (good for log files)
alias \ alias \
grep="grep --color=auto" \ grep="grep --color=auto" \