mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 00:26:17 +08:00
parent
6c373d89ec
commit
228ef9aafe
|
@ -109,7 +109,7 @@ function install_omf
|
|||
report progress "Adding startup code to fish config file..."
|
||||
|
||||
set template "templates/config.fish"
|
||||
set replacements "s|{{OMF_PATH}}|$OMF_PATH|;s|{{OMF_CONFIG}}|$OMF_CONFIG|"
|
||||
set replacements "s|{{OMF_CONFIG}}|$OMF_CONFIG|"
|
||||
|
||||
if test "$OMF_CONFIG" != "$XDG_CONFIG_HOME/omf"
|
||||
set replacements "$replacements;s|#set|set|"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# Path to Oh My Fish install.
|
||||
set -gx OMF_PATH "{{OMF_PATH}}"
|
||||
set -q XDG_DATA_HOME
|
||||
and set -gx OMF_PATH "$XDG_DATA_HOME/omf"
|
||||
or set -gx OMF_PATH "$HOME/.local/share/omf"
|
||||
|
||||
# Customize Oh My Fish configuration path.
|
||||
#set -gx OMF_CONFIG "{{OMF_CONFIG}}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user