and set -l tag (command git --git-dir "$OMF_PATH/.git" --work-tree "$OMF_PATH" describe --tags $hash)
# Checkout the release.
...
...
@@ -365,11 +365,11 @@ function uninstall_omf
is_install_dir "$OMF_PATH"
or abort "No installation detected at $OMF_PATH"
say (set_color -o red ^ /dev/null)"This will uninstall Oh My Fish and all plugins and themes from $OMF_PATH."(set_color normal ^ /dev/null)
say (set_color -o red 2> /dev/null)"This will uninstall Oh My Fish and all plugins and themes from $OMF_PATH."(set_color normal 2> /dev/null)
# If we installed the bootstrap to the user's config, let them know they need to remove it themselves.
if begin; test -f "$FISH_CONFIG/config.fish"; and grep -q OMF_PATH "$FISH_CONFIG/config.fish"; end
say (set_color -o ^ /dev/null)"Your configuration will not be modified. You may need to remove Oh My Fish startup code from $FISH_CONFIG/config.fish."(set_color normal ^ /dev/null)
say (set_color -o 2> /dev/null)"Your configuration will not be modified. You may need to remove Oh My Fish startup code from $FISH_CONFIG/config.fish."(set_color normal 2> /dev/null)
end
confirm_yes "Are you sure you want to continue?"
...
...
@@ -420,7 +420,7 @@ function backup_file -a file_path
say "Existent $file found at $path"
say "↳ Moving to $backup_file"
if not command cp "$file_path" $backup_file ^/dev/null
if not command cp "$file_path" $backup_file 2> /dev/null
abort "Could not backup $file_path"
end
...
...
@@ -441,7 +441,7 @@ function restore_backup_file -a file_path
if confirm "Would you like to restore it (overwrite existing)?"