mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 21:31:14 -03:00
Fixed setting PATH variable in import_bash_settings.py
This commit is contained in:
@@ -15,7 +15,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
"""
|
||||
|
||||
import os, sys, re
|
||||
import "deroff"
|
||||
#import "deroff"
|
||||
|
||||
config_file = None
|
||||
prompt_buff = ""
|
||||
@@ -108,6 +108,8 @@ def parse_input(input):
|
||||
add_alias(env_name[6:], env_value)
|
||||
elif env_name == "PS1":
|
||||
parse_bash_prompt(env_value)
|
||||
elif env_name == "PATH":
|
||||
config_file.write("set -x " + env_name + ' ' + env_value.replace(":"," ") )
|
||||
else:
|
||||
config_file.write("set_default " + env_name + ' "' + env_value + '"')
|
||||
#Move to next line
|
||||
|
||||
Reference in New Issue
Block a user