@heyitsiveen/dotfiles 1.0.2 → 1.0.4
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/README.md +1 -0
- package/dist/index.mjs +3 -3
- package/dotfiles/macos/.config/fish/conf.d/_tide_init.fish +14 -21
- 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/README.md
CHANGED
|
@@ -5,6 +5,7 @@ Interactive CLI to set up dotfiles for macOS and Windows 11. One command to inst
|
|
|
5
5
|
<!-- TODO: Replace with actual recording -->
|
|
6
6
|
<!--  -->
|
|
7
7
|
<!-- [How to record the demo GIF](docs/recording-demo.md) -->
|
|
8
|
+

|
|
8
9
|
|
|
9
10
|
## Table of Contents
|
|
10
11
|
|
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
|
}
|
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
function _tide_init_install --on-event _tide_init_install
|
|
2
2
|
set -U VIRTUAL_ENV_DISABLE_PROMPT true
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
switch (read --prompt-str="Configure tide prompt? [Y/n] " | string lower)
|
|
19
|
-
case y ye yes ''
|
|
20
|
-
tide configure
|
|
21
|
-
case '*'
|
|
22
|
-
echo -s \n 'Run ' (_tide_fish_colorize "tide configure") ' to customize your prompt.'
|
|
23
|
-
end
|
|
24
|
-
end
|
|
4
|
+
tide configure --auto \
|
|
5
|
+
--style=Rainbow \
|
|
6
|
+
--prompt_colors='True color' \
|
|
7
|
+
--show_time='24-hour format' \
|
|
8
|
+
--rainbow_prompt_separators=Angled \
|
|
9
|
+
--powerline_prompt_heads=Sharp \
|
|
10
|
+
--powerline_prompt_tails=Sharp \
|
|
11
|
+
--powerline_prompt_style='Two lines, character and frame' \
|
|
12
|
+
--prompt_connection=Disconnected \
|
|
13
|
+
--powerline_right_prompt_frame=Yes \
|
|
14
|
+
--prompt_connection_andor_frame_color=Lightest \
|
|
15
|
+
--prompt_spacing=Sparse \
|
|
16
|
+
--icons='Many icons' \
|
|
17
|
+
--transient=No
|
|
25
18
|
end
|
|
26
19
|
|
|
27
20
|
function _tide_init_update --on-event _tide_init_update
|
|
@@ -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
|
|