]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - files/pc/bashrc
Tweaks to invoke stuff
[dotfiles.git] / files / pc / bashrc
index d4b6acdce5b5b72f3a4594fbb8f5d16db5fb88ff..c6c6352d4221bf114406c3d1484a8811c58a404a 100644 (file)
@@ -57,9 +57,11 @@ if [ -n "$force_color_prompt" ]; then
 fi
 
 if [ "$color_prompt" = yes ]; then
 fi
 
 if [ "$color_prompt" = yes ]; then
-    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+    # PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
 else
 else
-    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+    # PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+    PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
 fi
 unset color_prompt force_color_prompt
 
 fi
 unset color_prompt force_color_prompt
 
@@ -129,6 +131,9 @@ alias in="source $HOME/venv/invoke/bin/activate;cd $HOME/dotfiles/invoke"
 export PATH="$HOME/bin:$PATH"
 export PATH="$HOME/bin/platform-tools:$PATH"
 export PATH="$HOME/.cargo/bin:$PATH"
 export PATH="$HOME/bin:$PATH"
 export PATH="$HOME/bin/platform-tools:$PATH"
 export PATH="$HOME/.cargo/bin:$PATH"
+if [ -f ~/dotfiles/bin/ml ]; then
+       export PATH="$HOME/dotfiles/bin:$PATH"
+fi
 
 export LUANTI_DATA="$HOME/.var/app/net.minetest.Minetest/.minetest"
 export LUANTI_RUN="flatpak run net.minetest.Minetest"
 
 export LUANTI_DATA="$HOME/.var/app/net.minetest.Minetest/.minetest"
 export LUANTI_RUN="flatpak run net.minetest.Minetest"
@@ -142,8 +147,13 @@ export SYSTEMD_EDITOR=/usr/bin/vim
 export GOROOT=/home/edward/.go
 export PATH=$GOROOT/bin:$PATH
 
 export GOROOT=/home/edward/.go
 export PATH=$GOROOT/bin:$PATH
 
-source $HOME/envs/invoke/bin/activate
-source $HOME/.env
+# source $HOME/envs/invoke/bin/activate
+
+[[ -f $HOME/.env ]] && source $HOME/.env
+[[ -d $HOME/dotfiles/bin ]] && export PATH="$HOME/dotfiles/bin:$PATH"
+[[ -d $HOME/src/minion/bin ]] && export PATH="$HOME/src/minion/bin:$PATH"
+[[ -d $HOME/src/down-shift/bin ]] && export PATH="$HOME/src/down-shift/bin:$PATH"
 
 
-# from invoke --print-completion-script bash > ~/.invoke-complete.sh
+[[ ! -f $HOME/.env ]] && $HOME/envs/invoke/bin/invoke --print-completion-script bash > ~/.invoke-complete.sh
+alias invoke='source $HOME/envs/invoke/bin/activate'
 source $HOME/.invoke-complete.sh
 source $HOME/.invoke-complete.sh