beep
This commit is contained in:
parent
fa80e5b25b
commit
66e0ede616
|
@ -1,7 +1,7 @@
|
||||||
{ config, pkgs, ... }: let
|
{ config, pkgs, ... }: let
|
||||||
configDir = "Code";
|
configDir = "Code";
|
||||||
userDir = if pkgs.stdenv.hostPlatform.isDarwin then
|
userDir = if pkgs.stdenv.hostPlatform.isDarwin then
|
||||||
"Library/Application\ Support/${configDir}/User"
|
"Library/Application Support/${configDir}/User"
|
||||||
else
|
else
|
||||||
"${config.xdg.configHome}/${configDir}/User";
|
"${config.xdg.configHome}/${configDir}/User";
|
||||||
in {
|
in {
|
||||||
|
@ -28,7 +28,7 @@ in {
|
||||||
after = [ "writeBoundary" ];
|
after = [ "writeBoundary" ];
|
||||||
before = [ ];
|
before = [ ];
|
||||||
data = ''
|
data = ''
|
||||||
vscodeDir=$HOME/${userDir}
|
vscodeDir="$HOME/${userDir}"
|
||||||
$DRY_RUN_CMD cat $vscodeDir/settings.json > $vscodeDir/settings_whatever.json
|
$DRY_RUN_CMD cat $vscodeDir/settings.json > $vscodeDir/settings_whatever.json
|
||||||
$DRY_RUN_CMD rm -f $vscodeDir/settings.json
|
$DRY_RUN_CMD rm -f $vscodeDir/settings.json
|
||||||
$DRY_RUN_CMD cp $vscodeDir/settings_whatever.json $vscodeDir/settings.json
|
$DRY_RUN_CMD cp $vscodeDir/settings_whatever.json $vscodeDir/settings.json
|
||||||
|
|
Loading…
Reference in a new issue