Commit f89bc188 authored by Bruno Pinto's avatar Bruno Pinto

Do not convert `$HOME` when installing omf.

Keep `$HOME` variable inside `config.fish` when installing oh my fish
instead of converting it to its content.
parent 9a1e413c
...@@ -92,7 +92,8 @@ omf_install() { ...@@ -92,7 +92,8 @@ omf_install() {
touch ${fish_config_file} >/dev/null 2>&1 touch ${fish_config_file} >/dev/null 2>&1
test ! -w ${fish_config_file} && die "Fish configuration file is not writable, aborting." 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}" "${OMF_PATH}/templates/config.fish" > "${fish_config_file}"
if [ ! -d "${OMF_CONFIG}" ]; then if [ ! -d "${OMF_CONFIG}" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment