fix: adjust flag rename correctly

This commit is contained in:
Jan De Dobbeleer 2022-02-25 17:16:08 +01:00 committed by Jan De Dobbeleer
parent 38850141a5
commit 5842b75158
4 changed files with 4 additions and 4 deletions

View file

@ -46,5 +46,5 @@ function export_poshconfig() {
if [ -z "$format" ]; then
format="json"
fi
::OMP:: --config="$POSH_THEME" --print-config --config-format="$format" > $1
::OMP:: --config="$POSH_THEME" --print-config --format="$format" > $1
}

View file

@ -42,5 +42,5 @@ function export_poshconfig
if not test -n "$format"
set format "json"
end
::OMP:: --config $POSH_THEME --print-config --config-format $format > $file_name
::OMP:: --config $POSH_THEME --print-config --format $format > $file_name
end

View file

@ -149,7 +149,7 @@ function global:Export-PoshTheme {
$config = $env:POSH_THEME
$omp = "::OMP::"
$configString = @(&$omp --config="$config" --config-format="$Format" --print-config 2>&1)
$configString = @(&$omp --config="$config" --format="$Format" --print-config 2>&1)
# if no path, copy to clipboard by default
if ($FilePath -ne "") {
#https://stackoverflow.com/questions/3038337/powershell-resolve-path-that-might-not-exist

View file

@ -51,7 +51,7 @@ function export_poshconfig() {
if [ -z "$format" ]; then
format="json"
fi
::OMP:: --config="$POSH_THEME" --print-config --config-format="$format" > $1
::OMP:: --config="$POSH_THEME" --print-config --format="$format" > $1
}
function self-insert() {