From bdd193a452e2d3f28e00961bf07bfb69c2b6e09a Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 19 Jul 2017 21:31:02 -0400 Subject: [PATCH] Added tcmd bash script to setup tide command environment for running bash --- tcmd | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 tcmd diff --git a/tcmd b/tcmd new file mode 100755 index 0000000..38af1c9 --- /dev/null +++ b/tcmd @@ -0,0 +1,26 @@ +#!/bin/bash + +# setup editor env +export PS1=":; " +export PATH="$HOME/.config/tide/tools:$PATH" +export EDITRCFILE="$HOME/.config/edit/editrc" +export BASH_ENV="$EDITRCFILE" + +function cd(){ + command cd "$@" && echo -en "\033P$PWD\0" +} +export -f cd + +edit(){ + [[ -f "$EDITRCFILE" ]] && . "$EDITRCFILE" + + # Now figure out the correct editor to execute + if [[ -z "$DISPLAY" ]]; then + "$EDITOR" "$@" + else + bkg tide "$@" + fi +} +export -f edit + +exec tide -- -- 2.49.0