From 5eb355e5a062bb4e56a0a44073bfce38bf4dfc3f Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Sun, 21 Jun 2020 05:10:56 +0000
Subject: [PATCH] coloured $ according to return status

---
 all-shells/.commonshell |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/all-shells/.commonshell b/all-shells/.commonshell
index a1a6a8c..945ac86 100644
--- a/all-shells/.commonshell
+++ b/all-shells/.commonshell
@@ -6,14 +6,17 @@
 alias less='less -r'
 alias stats="find . -type f -printf '%f\n' | sed -r -n 's/.+(\..*)$/\1/p' | sort | uniq -c"
 
-export EDITOR=/usr/bin/vim
+alias pip-upgrade="pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip install -U"
+
+export EDITOR="/usr/bin/emacsclient -nw -a /usr/bin/vim"
+alias ec=$EDITOR
 
 #default wine prefix
-export WINEPREFIX=/home/joel/.wine/Games/
+export WINEPREFIX=$HOME/.wine/Games/
 export STEAM_COMPAT_DATA_PATH=$HOME/proton
 
 export LIBVA_DRIVER_NAME=iHD
 
 # add to path
 export PATH=$PATH:~/.local/bin
-PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"
+[ -r /usr/bin/ruby ] && PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"

--
Gitblit v1.9.3