From 6c0f794a94f73334892e2eac013bd74038336c54 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sat, 17 Feb 2018 20:04:30 +0300 Subject: [PATCH] use relative path for default shell on unix Related #58 --- doc.go | 2 +- docstring.go | 2 +- etc/lfrc.example | 2 +- os.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc.go b/doc.go index 38db9214..580219e1 100644 --- a/doc.go +++ b/doc.go @@ -84,7 +84,7 @@ The following options can be used to customize the behavior of lf: filesep string (default "\n") ifs string (default '') (not exported if empty) previewer string (default '') (not filtered if empty) - shell string (default '/bin/sh') + shell string (default 'sh') sortby string (default 'natural') timefmt string (default 'Mon Jan _2 15:04:05 2006') ratios string (default '1:2:3') diff --git a/docstring.go b/docstring.go index ac2d10ba..51dacf65 100644 --- a/docstring.go +++ b/docstring.go @@ -88,7 +88,7 @@ The following options can be used to customize the behavior of lf: filesep string (default "\n") ifs string (default '') (not exported if empty) previewer string (default '') (not filtered if empty) - shell string (default '/bin/sh') + shell string (default 'sh') sortby string (default 'natural') timefmt string (default 'Mon Jan _2 15:04:05 2006') ratios string (default '1:2:3') diff --git a/etc/lfrc.example b/etc/lfrc.example index fe0f0eaf..286a0d7c 100644 --- a/etc/lfrc.example +++ b/etc/lfrc.example @@ -1,5 +1,5 @@ # interpreter for shell commands (needs to be POSIX compatible) -set shell /bin/sh +set shell sh # set internal field separator (IFS) to "\n" for shell commands # This is useful to automatically split file names in $fs and $fx properly diff --git a/os.go b/os.go index 162349f7..0668027c 100644 --- a/os.go +++ b/os.go @@ -12,7 +12,7 @@ import ( ) var ( - gDefaultShell = "/bin/sh" + gDefaultShell = "sh" gDefaultSocketProt = "unix" gDefaultSocketPath string )