mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
fix: adjust flag rename correctly
This commit is contained in:
parent
38850141a5
commit
5842b75158
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue