mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-01 06:07:49 +08:00
Merge pull request #560 from fish-shell/do-not-convert-home
Do not convert `$HOME` when installing omf.
This commit is contained in:
commit
cd857cf22f
|
@ -92,7 +92,8 @@ omf_install() {
|
|||
touch ${fish_config_file} >/dev/null 2>&1
|
||||
test ! -w ${fish_config_file} && die "Fish configuration file is not writable, aborting."
|
||||
|
||||
sed "s|{{OMF_PATH}}|$OMF_PATH|;s|{{OMF_CONFIG}}|$OMF_CONFIG|" \
|
||||
sed "s|{{OMF_PATH}}|$(echo "${OMF_PATH}" | sed -e "s|$HOME|\$HOME|")|;\
|
||||
s|{{OMF_CONFIG}}|$(echo "${OMF_CONFIG}" | sed -e "s|$HOME|\$HOME|")|" \
|
||||
"${OMF_PATH}/templates/config.fish" > "${fish_config_file}"
|
||||
|
||||
if [ ! -d "${OMF_CONFIG}" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user