mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[rofi-theme-selector] don't remove lines, but comment them.
This commit is contained in:
parent
1c5241a6ae
commit
09e0f87658
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ set_theme()
|
||||||
mkdir -p "${CDIR}"
|
mkdir -p "${CDIR}"
|
||||||
fi
|
fi
|
||||||
get_link=$(readlink -f "${CDIR}/config.rasi")
|
get_link=$(readlink -f "${CDIR}/config.rasi")
|
||||||
${SED} -i "/@theme.*/d" "${get_link}"
|
${SED} -i 's/^\s*\(@theme\s\+".*"\)/\/\/\1/' "${get_link}"
|
||||||
echo "@theme \"${1}\"" >> "${get_link}"
|
echo "@theme \"${1}\"" >> "${get_link}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue