Update bashrc and prompt

Signed-off-by: Aleksandar 'The Cobra' Widulski <thecobra@riseup.net>
This commit is contained in:
Aleksandar 'The Cobra' Widulski 2022-03-03 11:54:48 -05:00
parent c24d18fbf4
commit 28efe8e906
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,3 @@
case $_ in *i*) :;; *) return;; esac
# Source prompt
. ~/.prompt
@ -20,7 +18,7 @@ alias bashrc="$EDITOR ~/.bashrc && rebash"
alias nf='neofetch'
alias sshd='boas /usr/sbin/sshd'
alias ga='git add'
alias gc='git commit -sm'
alias gc='git commit -s'
alias gp='git push'
# Completions for elevation program (https://codeberg.org/Bowuigi/Unit21 in management/boas)
@ -64,3 +62,7 @@ urlencode() {
done
LC_COLLATE=$LC_COLLATE_OLD
}
diffhome() { find . -type f -regex '\./\.[^g].*' -exec diff -q ~/{} {} \;; }
fixdh() { find . -type f -regex '\./\.[^g].*' -exec diff -q ~/{} {} \; | awk '{print $2 " " $4}' | while read -r line; do cp $line; done; }

View File

@ -1,4 +1,4 @@
export EDITOR=vim
export INVIDIOUS="https://invidious.snopyta.org"
export PATH="$HOME/.local/bin:$PATH"
[ -r ~/.bashrc ] && . ~/.bashrc
[ -r ~/.bashrc ] && case $_ in *i*) . ~/.bashrc;; esac