Skip to content

Instantly share code, notes, and snippets.

@luginbash
Created May 12, 2014 05:42
Show Gist options
  • Save luginbash/eab939aae92238fea48e to your computer and use it in GitHub Desktop.
Save luginbash/eab939aae92238fea48e to your computer and use it in GitHub Desktop.
FSL doesn't support zsh by default, so I patched it for installation.
@@ -1066,6 +1066,7 @@ class FslInstall(object):
shells['ksh'] = '.profile'
shells['csh'] = '.cshrc'
shells['tcsh'] = '.cshrc'
+ shells['zsh'] = '.zshrc'
shellmap = {}
shellmap['bash'] = 'sh'
@@ -1073,6 +1074,7 @@ class FslInstall(object):
shellmap['tcsh'] = 'csh'
shellmap['sh'] = 'sh'
shellmap['csh'] = 'csh'
+ shellmap['zsh'] = 'zsh'
@fepegar
Copy link

fepegar commented Aug 2, 2017

This worked for me. Modify fslinstaller.py as follows and then run it:

  1. In def shell_config(), add zsh to the conditions
  2. In def get_profile(), add these lines after declaring the homevariable:
if shell == 'zsh':
    profile = os.path.join(home, '.zshrc')
    return profile

Let me know if that worked for you!

@caglorithm
Copy link

Thanks fepegar, this easy fix worked well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment