@heyitsiveen/dotfiles 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +3 -3
- package/dotfiles/macos/.config/fish/functions/fish_greeting.fish +1 -4
- package/dotfiles/windows/powershell/Profile.ps1 +0 -4
- package/dotfiles/windows/powershell/functions/Switch-PromptPalette.ps1 +1 -1
- package/dotfiles/windows/powershell/modules/prompt.ps1 +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -258,7 +258,7 @@ function getDependencyTools(platform) {
|
|
|
258
258
|
{
|
|
259
259
|
name: "fastfetch",
|
|
260
260
|
binary: "fastfetch",
|
|
261
|
-
description: "System info
|
|
261
|
+
description: "System info tool",
|
|
262
262
|
installCmd: "brew install fastfetch",
|
|
263
263
|
required: false
|
|
264
264
|
},
|
|
@@ -296,7 +296,7 @@ function getDependencyTools(platform) {
|
|
|
296
296
|
{
|
|
297
297
|
name: "fastfetch",
|
|
298
298
|
binary: "fastfetch",
|
|
299
|
-
description: "System info
|
|
299
|
+
description: "System info tool",
|
|
300
300
|
installCmd: "winget install Fastfetch-cli.Fastfetch",
|
|
301
301
|
required: false
|
|
302
302
|
},
|
|
@@ -650,7 +650,7 @@ async function switchTideTheme(targetDir, theme) {
|
|
|
650
650
|
await writeFile(filePath, (await readFile(filePath, "utf-8")).replace(/^(set -l tide_default_palette )\S+$/m, `$1${tidePalettes[theme]}`), "utf-8");
|
|
651
651
|
}
|
|
652
652
|
async function switchOmpTheme(theme) {
|
|
653
|
-
const themeDir = join(homedir(),
|
|
653
|
+
const themeDir = join(homedir(), MANIFEST_DIR, "oh-my-posh");
|
|
654
654
|
await ensureDir(themeDir);
|
|
655
655
|
await writeFile(join(themeDir, "prompt-theme.txt"), theme, "utf-8");
|
|
656
656
|
}
|
|
@@ -23,7 +23,7 @@ function Switch-PromptPalette {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
# Persist selection
|
|
26
|
-
$configDir = Join-Path $env:USERPROFILE '.config\dotfiles'
|
|
26
|
+
$configDir = Join-Path $env:USERPROFILE '.config\heyitsiveen\dotfiles\oh-my-posh'
|
|
27
27
|
if (-not (Test-Path $configDir)) {
|
|
28
28
|
New-Item -ItemType Directory -Path $configDir -Force | Out-Null
|
|
29
29
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
# Prompt — oh-my-posh initialization
|
|
3
3
|
# =============================================================================
|
|
4
4
|
# Converted from: dotfiles-macos/.config/fish/conf.d/70-tide.fish
|
|
5
|
-
# Reads the active palette from ~/.config/dotfiles/prompt-theme.txt
|
|
5
|
+
# Reads the active palette from ~/.config/heyitsiveen/dotfiles/prompt-theme.txt
|
|
6
6
|
# Valid values: solarized-dark (default), vercel, vesper
|
|
7
7
|
|
|
8
8
|
if (-not (Get-Command oh-my-posh -ErrorAction SilentlyContinue)) { return }
|
|
9
9
|
|
|
10
10
|
# Read persisted theme preference (defaults to solarized-dark)
|
|
11
|
-
$themeConfigDir = Join-Path $env:USERPROFILE '.config\dotfiles'
|
|
11
|
+
$themeConfigDir = Join-Path $env:USERPROFILE '.config\heyitsiveen\dotfiles\oh-my-posh'
|
|
12
12
|
$themeConfigFile = Join-Path $themeConfigDir 'prompt-theme.txt'
|
|
13
13
|
$validThemes = @('solarized-dark', 'vercel', 'vesper')
|
|
14
14
|
|