export EDITRCFILE="$HOME/.config/edit/editrc"
export BASH_ENV="$EDITRCFILE"
+# Load the rc file
+if [ -f "$EDITRCFILE" ]; then
+ . "$EDITRCFILE"
+fi
+
# Now figure out the correct editor to execute
if [ -z "$DISPLAY" ]; then
if [ -z "$EDITOR" ]; then
(nohup xedit > /dev/null 2>&1) &
else
for f in "$@"; do
- [ -f "$EDITRCFILE" ] && . "$EDITRCFILE"
(nohup xedit "$f" > /dev/null 2>&1) &
done
fi
bcmt(){ sed -e 's/^/#/'; }
ucmt(){ sed -e 's/^#//'; }
+# Expand tabs to spaces
+etabs(){ sed -e 's/\t/ /g'; }
+
/* Helper Functions
*****************************************************************************/
void setup_view(enum RegionId id, char* text, int crlf, unsigned cursor) {
+ ShellCmd[0] = "/bin/sh";
Focused = id;
view_init(getview(id), NULL);
getbuf(id)->crlf = crlf;