From 36e2edd3577f8c6d10a0408e0ee7ef93eea2ffe5 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Mon, 4 Dec 2023 09:28:13 -0500 Subject: [PATCH] Add .bashrc --- .bashrc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.bashrc b/.bashrc index 152c0c7..a4099ca 100644 --- a/.bashrc +++ b/.bashrc @@ -83,7 +83,6 @@ alias ":q!"="exit" alias diff="diff --color=auto" alias grep="grep -i --color=auto" alias mv="mv -v" -alias sudo="doas" alias arduino=" arduino" alias logisim-evolution="_JAVA_AWT_WM_NONREPARENTING=1 logisim-evolution" alias vifm="vifmrun" @@ -92,15 +91,15 @@ alias new-motd="vim /home/tyler/.desktop/alarm/motd.txt" alias disable-alarm=". /home/tyler/.desktop/alarm/disable-alarm.sh" -#vim opens vim wiki by default, else the file -#function vimw(){ -# if [ $# -eq 0 ]; then -# vim ~/vimwiki/splash.wiki -# else -# vim $@ -# fi -#} -#alias vim="vimw" +if [ -f $HOME/.sdkman/bin/sdkman-init.sh ]; then + source $HOME/.sdkman/bin/sdkman-init.sh +fi + +which doas > /dev/null 2>&1 +if [ $? -eq 0 ]; then + alias sudo="doas" +fi + export PS1="\033[1m\e[0;97m[\e[0;32m\u\e[0;97m@\e[0;31m\h \e[0;97m(\D{}) \w]\n$ \033[0m" export KUBECONFIG=~/.kube/config