Merge pull request #3 from glmdev/zsh_support

zsh support
This commit is contained in:
Garrett Mills 2018-11-28 14:32:57 -06:00 committed by GitHub
commit 8ae574a136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ This project is currently a work-in-progress. Only the fish shell is supported a
## Requires ## Requires
- python3 - python3
- source-highlight - source-highlight
- less/cat/ls/ - less/cat/ls/vim
## TODO ## TODO
- Documentation/License - Documentation/License

View File

@ -3,7 +3,7 @@ import os
import subprocess import subprocess
import configparser import configparser
# supported values: fish, bash # supported values: fish, bash, zsh
shell="fish" shell="fish"
print_file="cat" print_file="cat"
@ -14,7 +14,7 @@ list_directory="ls --color=auto"
def set_runtime_var(name, value, options=""): def set_runtime_var(name, value, options=""):
if ( shell == "fish" ): if ( shell == "fish" ):
print("set "+name+" "+options+" \""+value+"\"") print("set "+name+" "+options+" \""+value+"\"")
elif ( shell == "bash" ): elif ( shell == "bash" || shell == "zsh" ):
print("export "+name+"="+"\""+value+"\"") print("export "+name+"="+"\""+value+"\"")
def is_binary_file(filepathname): def is_binary_file(filepathname):