From d111784755d1fb8f47758b7146ac94139b887977 Mon Sep 17 00:00:00 2001 From: glmdev Date: Wed, 28 Nov 2018 14:32:18 -0600 Subject: [PATCH] zsh support --- README.md | 2 +- do_what.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7942a0d..5cec571 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This project is currently a work-in-progress. Only the fish shell is supported a ## Requires - python3 - source-highlight - - less/cat/ls/ + - less/cat/ls/vim ## TODO - Documentation/License diff --git a/do_what.py b/do_what.py index e209689..cd31a9f 100644 --- a/do_what.py +++ b/do_what.py @@ -3,7 +3,7 @@ import os import subprocess import configparser -# supported values: fish, bash +# supported values: fish, bash, zsh shell="fish" print_file="cat" @@ -14,7 +14,7 @@ list_directory="ls --color=auto" def set_runtime_var(name, value, options=""): if ( shell == "fish" ): print("set "+name+" "+options+" \""+value+"\"") - elif ( shell == "bash" ): + elif ( shell == "bash" || shell == "zsh" ): print("export "+name+"="+"\""+value+"\"") def is_binary_file(filepathname):