From c2c5577a0d40d8c69d609792b918d4a045aff17d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 20 Sep 2024 23:47:25 +0200 Subject: ec: Fix ‘ec’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local/bin/ec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/ec b/.local/bin/ec index 5190e05..ac6c1d6 100755 --- a/.local/bin/ec +++ b/.local/bin/ec @@ -1,4 +1,9 @@ -#!/usr/local/bin/andy +#!/bin/sh -test -t 2 && set mode t || set mode c -exec emacsclient -s ec -$mode +if test -t 2 +then + FLAGS=-t +else + FLAGS=-cnqu +fi +exec emacsclient -s ec $FLAGS -- cgit v1.2.3