From 2361ff1911f3a73fe1e01cebfed44b1dd1b900d0 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 4 Aug 2020 00:43:48 +0300 Subject: [PATCH] fixes --- shfm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shfm b/shfm index 2d2da9d..289500f 100755 --- a/shfm +++ b/shfm @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh term_setup() { stty -icanon -echo @@ -105,6 +105,8 @@ print_line() { } main() { + set -e + esc_char=$(printf '\033') cd "${1:-"$PWD"}"