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