Bladeren bron

Changes to support m1nix Asahi install

Simon Watson 1 jaar geleden
bovenliggende
commit
f831dd8b0a
1 gewijzigde bestanden met toevoegingen van 15 en 5 verwijderingen
  1. 15 5
      bashrc/bashrc-all

+ 15 - 5
bashrc/bashrc-all

@@ -15,7 +15,7 @@ if [ -f ~/.cache/wal/sequences ]; then
 fi
 
 
-BPYTOP_PATH=$(which bpytop)
+BPYTOP_PATH=$(which bpytop 2> /dev/null)
 BTOP_PATH=$(which btop)
 if [ ! -z "$BPYTOP_PATH" ] && [ -z $BTOP_PATH ]; then
     alias htop="bpytop -b \"cpu mem net proc\""
@@ -69,7 +69,7 @@ vim()
 	if [[ $(ps aux | grep -v grep | grep emacs) ]];
 	then
 		# using anemic term/color/etc as it's faster in emacs
-		TERM=tmux emacsclient -nw $1
+		TERM=tmux emacsclient -c $1 &
 		export EDITOR="emacsclient"
 	else
 		VIM_PATH=$(which vim)
@@ -81,7 +81,7 @@ vim()
 # HN Helper functions
 
 # Pull up comments for number
-export HN_PATH=$(which hn)
+export HN_PATH=$(which hn 2> /dev/null)
 hnc() {
 	if [ ! -z "$HN_PATH" ]; then
 		hn view -c $1 | less -r
@@ -90,7 +90,7 @@ hnc() {
 	fi
 }
 
-export HIMALAYA_PATH=$(which himalaya)
+export HIMALAYA_PATH=$(which himalaya 2> /dev/null)
 if [ ! -z $HIMALAYA_PATH ]; then
        . ~/Repos/dotfiles/himalaya/himalaya_shell_ui.sh
 fi
@@ -170,7 +170,7 @@ alias spesktv='mpv http://chate.io:55555'
 
 # Case defines platform specific configs
 # Platform agnostic configs above
-case $(hostname) in
+case $(cat /etc/hostname) in
     Simons-MacBook-Pro.local)
 	export PS1="\w λ > \[$(tput sgr0)\]"
 
@@ -226,6 +226,16 @@ case $(hostname) in
 	alias shorten-ps1="PS1='λ > '"
 
 	echo "Loaded Void config"
+
+	;;
+
+    m1nix)
+
+	export PS1="\[\033[36m\]\w\[\033[m\] λ " 
+	alias shorten-ps1="PS1='λ > '"
+
+	echo "Loaded m1nix config"
+
 	
 esac