mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Use starship
This commit is contained in:
parent
e440b85d84
commit
1b66571411
14 changed files with 967 additions and 97 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
# starship.toml
|
# starship.toml
|
||||||
# ~/.config/starship.toml
|
# ~/.config/starship.toml
|
||||||
format = '''$os$time $username @ $hostname $directory $all$character'''
|
format = '''$os$time $username @ $hostname $directory $all$character'''
|
||||||
|
continuation_prompt = "[$ ](bold cyan) "
|
||||||
|
|
||||||
add_newline = true
|
add_newline = true
|
||||||
|
|
||||||
|
|
@ -18,9 +19,9 @@ ssh_only = false
|
||||||
ssh_symbol = ' '
|
ssh_symbol = ' '
|
||||||
|
|
||||||
[character]
|
[character]
|
||||||
success_symbol = "[PS > ](bold green)"
|
success_symbol = "[$ ](bold green)"
|
||||||
error_symbol = "[PS > ](bold red)"
|
error_symbol = "[$ ](bold red)"
|
||||||
vimcmd_symbol = "[Vi > ](bold green)"
|
vimcmd_symbol = "[: ](bold green)"
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
truncation_length = 2
|
truncation_length = 2
|
||||||
|
|
@ -29,6 +30,14 @@ read_only = " "
|
||||||
style ="bold cyan"
|
style ="bold cyan"
|
||||||
truncation_symbol = ".../"
|
truncation_symbol = ".../"
|
||||||
|
|
||||||
|
[directory.substitutions]
|
||||||
|
"~/Documents" = " "
|
||||||
|
"~/Downloads" = " "
|
||||||
|
"~/Music" = " "
|
||||||
|
"~/Pictures" = " "
|
||||||
|
"Source" = " "
|
||||||
|
"src" = " "
|
||||||
|
|
||||||
[aws]
|
[aws]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
|
||||||
|
|
|
||||||
208
.config/starship/starship_pwsh.toml
Normal file
208
.config/starship/starship_pwsh.toml
Normal file
|
|
@ -0,0 +1,208 @@
|
||||||
|
# starship.toml
|
||||||
|
# ~/.config/starship.toml
|
||||||
|
format = '''$os$time $username @ $hostname $directory $all$character'''
|
||||||
|
continuation_prompt = "[CR > ](bold cyan) "
|
||||||
|
|
||||||
|
add_newline = true
|
||||||
|
|
||||||
|
[time]
|
||||||
|
disabled = false
|
||||||
|
format = '[\[$time\]](purple)'
|
||||||
|
time_format = '%H:%M'
|
||||||
|
|
||||||
|
[username]
|
||||||
|
format = '[$user](bold)'
|
||||||
|
show_always = true
|
||||||
|
|
||||||
|
[hostname]
|
||||||
|
ssh_only = false
|
||||||
|
ssh_symbol = ' '
|
||||||
|
|
||||||
|
[character]
|
||||||
|
success_symbol = "[PS > ](bold green)"
|
||||||
|
error_symbol = "[PS > ](bold red)"
|
||||||
|
vimcmd_symbol = "[Vi < ](bold green)"
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
truncation_length = 2
|
||||||
|
truncate_to_repo = true
|
||||||
|
read_only = " "
|
||||||
|
style ="bold cyan"
|
||||||
|
truncation_symbol = ".../"
|
||||||
|
|
||||||
|
[directory.substitutions]
|
||||||
|
"~/Documents" = " "
|
||||||
|
"~/Downloads" = " "
|
||||||
|
"~/Music" = " "
|
||||||
|
"~/Pictures" = " "
|
||||||
|
"Source" = " "
|
||||||
|
"src" = " "
|
||||||
|
|
||||||
|
[aws]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[buf]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[c]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[conda]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[crystal]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[dart]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[elixir]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[elm]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[fennel]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[fossil_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[git_commit]
|
||||||
|
tag_symbol = ' '
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[guix_shell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[haskell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[haxe]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[hg_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[java]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[julia]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[kotlin]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[lua]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[memory_usage]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[meson]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nim]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nix_shell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[ocaml]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[os]
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[os.symbols]
|
||||||
|
Alpaquita = " "
|
||||||
|
Alpine = " "
|
||||||
|
AlmaLinux = " "
|
||||||
|
Amazon = " "
|
||||||
|
Android = " "
|
||||||
|
Arch = " "
|
||||||
|
Artix = " "
|
||||||
|
CentOS = " "
|
||||||
|
Debian = " "
|
||||||
|
DragonFly = " "
|
||||||
|
Emscripten = " "
|
||||||
|
EndeavourOS = " "
|
||||||
|
Fedora = " "
|
||||||
|
FreeBSD = " "
|
||||||
|
Garuda = " "
|
||||||
|
Gentoo = " "
|
||||||
|
HardenedBSD = " "
|
||||||
|
Illumos = " "
|
||||||
|
Kali = " "
|
||||||
|
Linux = " "
|
||||||
|
Mabox = " "
|
||||||
|
Macos = " "
|
||||||
|
Manjaro = " "
|
||||||
|
Mariner = " "
|
||||||
|
MidnightBSD = " "
|
||||||
|
Mint = " "
|
||||||
|
NetBSD = " "
|
||||||
|
NixOS = " "
|
||||||
|
OpenBSD = " "
|
||||||
|
openSUSE = " "
|
||||||
|
OracleLinux = " "
|
||||||
|
Pop = " "
|
||||||
|
Raspbian = " "
|
||||||
|
Redhat = " "
|
||||||
|
RedHatEnterprise = " "
|
||||||
|
RockyLinux = " "
|
||||||
|
Redox = " "
|
||||||
|
Solus = " "
|
||||||
|
SUSE = " "
|
||||||
|
Ubuntu = " "
|
||||||
|
Unknown = " "
|
||||||
|
Void = " "
|
||||||
|
Windows = " "
|
||||||
|
|
||||||
|
[package]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[perl]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[php]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[pijul_channel]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[python]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[rlang]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[ruby]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[rust]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[scala]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[swift]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[zig]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[gradle]
|
||||||
|
symbol = " "
|
||||||
208
.config/starship/starship_zsh.toml
Normal file
208
.config/starship/starship_zsh.toml
Normal file
|
|
@ -0,0 +1,208 @@
|
||||||
|
# starship.toml
|
||||||
|
# ~/.config/starship.toml
|
||||||
|
format = '''$os$time $username @ $hostname $directory $all$character'''
|
||||||
|
continuation_prompt = "[r % ](bold cyan) "
|
||||||
|
|
||||||
|
add_newline = true
|
||||||
|
|
||||||
|
[time]
|
||||||
|
disabled = false
|
||||||
|
format = '[\[$time\]](purple)'
|
||||||
|
time_format = '%H:%M'
|
||||||
|
|
||||||
|
[username]
|
||||||
|
format = '[$user](bold)'
|
||||||
|
show_always = true
|
||||||
|
|
||||||
|
[hostname]
|
||||||
|
ssh_only = false
|
||||||
|
ssh_symbol = ' '
|
||||||
|
|
||||||
|
[character]
|
||||||
|
success_symbol = "[z % ](bold green)"
|
||||||
|
error_symbol = "[z % ](bold red)"
|
||||||
|
vimcmd_symbol = "[v ! ](bold green)"
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
truncation_length = 2
|
||||||
|
truncate_to_repo = true
|
||||||
|
read_only = " "
|
||||||
|
style ="bold cyan"
|
||||||
|
truncation_symbol = ".../"
|
||||||
|
|
||||||
|
[directory.substitutions]
|
||||||
|
"~/Documents" = " "
|
||||||
|
"~/Downloads" = " "
|
||||||
|
"~/Music" = " "
|
||||||
|
"~/Pictures" = " "
|
||||||
|
"Source" = " "
|
||||||
|
"src" = " "
|
||||||
|
|
||||||
|
[aws]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[buf]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[c]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[conda]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[crystal]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[dart]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[elixir]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[elm]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[fennel]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[fossil_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[git_commit]
|
||||||
|
tag_symbol = ' '
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[guix_shell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[haskell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[haxe]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[hg_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[java]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[julia]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[kotlin]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[lua]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[memory_usage]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[meson]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nim]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nix_shell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[ocaml]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[os]
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[os.symbols]
|
||||||
|
Alpaquita = " "
|
||||||
|
Alpine = " "
|
||||||
|
AlmaLinux = " "
|
||||||
|
Amazon = " "
|
||||||
|
Android = " "
|
||||||
|
Arch = " "
|
||||||
|
Artix = " "
|
||||||
|
CentOS = " "
|
||||||
|
Debian = " "
|
||||||
|
DragonFly = " "
|
||||||
|
Emscripten = " "
|
||||||
|
EndeavourOS = " "
|
||||||
|
Fedora = " "
|
||||||
|
FreeBSD = " "
|
||||||
|
Garuda = " "
|
||||||
|
Gentoo = " "
|
||||||
|
HardenedBSD = " "
|
||||||
|
Illumos = " "
|
||||||
|
Kali = " "
|
||||||
|
Linux = " "
|
||||||
|
Mabox = " "
|
||||||
|
Macos = " "
|
||||||
|
Manjaro = " "
|
||||||
|
Mariner = " "
|
||||||
|
MidnightBSD = " "
|
||||||
|
Mint = " "
|
||||||
|
NetBSD = " "
|
||||||
|
NixOS = " "
|
||||||
|
OpenBSD = " "
|
||||||
|
openSUSE = " "
|
||||||
|
OracleLinux = " "
|
||||||
|
Pop = " "
|
||||||
|
Raspbian = " "
|
||||||
|
Redhat = " "
|
||||||
|
RedHatEnterprise = " "
|
||||||
|
RockyLinux = " "
|
||||||
|
Redox = " "
|
||||||
|
Solus = " "
|
||||||
|
SUSE = " "
|
||||||
|
Ubuntu = " "
|
||||||
|
Unknown = " "
|
||||||
|
Void = " "
|
||||||
|
Windows = " "
|
||||||
|
|
||||||
|
[package]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[perl]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[php]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[pijul_channel]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[python]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[rlang]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[ruby]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[rust]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[scala]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[swift]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[zig]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[gradle]
|
||||||
|
symbol = " "
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -17,5 +17,5 @@ test.*
|
||||||
*.tar
|
*.tar
|
||||||
*.zip
|
*.zip
|
||||||
*.tgz
|
*.tgz
|
||||||
WindowsTerminal.json
|
# WindowsTerminal.json
|
||||||
PowerToys/
|
PowerToys/
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
[.ShellClassInfo]
|
[.ShellClassInfo]
|
||||||
IconResource=C:\Windows\System32\SHELL32.dll,137
|
IconResource=D:\Assets\Folder11-Ico\ico\bash.ico,0
|
||||||
[ViewState]
|
[ViewState]
|
||||||
Mode=
|
Mode=
|
||||||
Vid=
|
Vid=
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
# aka PSReadLine
|
# aka PSReadLine
|
||||||
# PSReadLineOptions
|
# PSReadLineOptions
|
||||||
Set-PSReadLineOption -EditMode vi # Vi Keybindings
|
Set-PSReadLineOption -EditMode Vi # Vi Keybindings
|
||||||
Set-PSReadLineOption -PredictionViewStyle ListView
|
Set-PSReadLineOption -PredictionViewStyle ListView
|
||||||
Set-PSReadLineOption -PredictionSource HistoryAndPlugin
|
Set-PSReadLineOption -PredictionSource HistoryAndPlugin
|
||||||
Set-PSReadLineOption -ContinuationPrompt "`e[36m CR > "
|
# Set-PSReadLineOption -ContinuationPrompt "`e[36m CR > " # Use Starship instead
|
||||||
# PSReadLineKeyHandlers
|
# PSReadLineKeyHandlers
|
||||||
## Colemak hnei
|
## Colemak hnei
|
||||||
Set-PSReadLineKeyHandler -Chord "n" -Function NextHistory -ViMode Command
|
Set-PSReadLineKeyHandler -Chord "n" -Function NextHistory -ViMode Command
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,6 @@ ${function:down} = { Set-Location -Path ~/Downloads }
|
||||||
${function:dt} = { Set-Location -Path ~/Desktop }
|
${function:dt} = { Set-Location -Path ~/Desktop }
|
||||||
${function:mytmp} = { Set-Location -Path ~/Temp }
|
${function:mytmp} = { Set-Location -Path ~/Temp }
|
||||||
${function:one} = { Set-Location -Path ~/OneDrive }
|
${function:one} = { Set-Location -Path ~/OneDrive }
|
||||||
${function:doku} = { Set-Location -Path ~/doku && Get-ChildItem }
|
${function:doku} = { Set-Location -Path ~/doku && Get-ChildItem }
|
||||||
|
|
||||||
|
Invoke-Expression (& { (zoxide init powershell | Out-String) })
|
||||||
|
|
@ -1,86 +1,92 @@
|
||||||
$promptTime = $true
|
# Use starship to set prompt
|
||||||
# $promptWeather = $false
|
$ENV:STARSHIP_CONFIG = "$DOTFILES/.config/starship/starship_pwsh.toml"
|
||||||
|
|
||||||
function prompt {
|
Invoke-Expression (&starship init powershell)
|
||||||
$prompt = "`e[35m"
|
|
||||||
# Time
|
# Below is the backup of original prompt function
|
||||||
if ($promptTime) {
|
# $promptTime = $true
|
||||||
$promptTime = Get-Date -Format HH:mm
|
# # $promptWeather = $false
|
||||||
$prompt += "`[$promptTime]"
|
|
||||||
}
|
# function prompt {
|
||||||
# UserInfo
|
# $prompt = "`e[35m"
|
||||||
$prompt += " $Env:Username @ $Env:Userdomain"
|
# # Time
|
||||||
# Directory
|
# if ($promptTime) {
|
||||||
$promptCurrentDirectory = $(PWD).Path
|
# $promptTime = Get-Date -Format HH:mm
|
||||||
$promptCurrentDirectory = $promptCurrentDirectory.Replace("$HOME", "~")
|
# $prompt += "`[$promptTime]"
|
||||||
$prompt += "`e[0m in `e[33m$promptCurrentDirectory "
|
# }
|
||||||
# Git
|
# # UserInfo
|
||||||
if ($(git rev-parse --is-inside-work-tree 2> $null) -eq "true") {
|
# $prompt += " $Env:Username @ $Env:Userdomain"
|
||||||
$prompt += "`e[32m`u{e702} $(git branch --show-current)"
|
# # Directory
|
||||||
}
|
# $promptCurrentDirectory = $(PWD).Path
|
||||||
# Conda
|
# $promptCurrentDirectory = $promptCurrentDirectory.Replace("$HOME", "~")
|
||||||
if ( $Env:CONDA_PROMPT_MODIFIER ) {
|
# $prompt += "`e[0m in `e[33m$promptCurrentDirectory "
|
||||||
$promptConda = $Env:CONDA_PROMPT_MODIFIER.Replace("`(","").Replace(")","")
|
# # Git
|
||||||
$pythonVersion = $(python --version).Split(" ")[1]
|
# if ($(git rev-parse --is-inside-work-tree 2> $null) -eq "true") {
|
||||||
$prompt += " `e[33m`u{e73c} $promptConda $pythonVersion"
|
# $prompt += "`e[32m`u{e702} $(git branch --show-current)"
|
||||||
}
|
# }
|
||||||
# Programming Language (by Get-ChildItem)
|
# # Conda
|
||||||
## Python
|
# if ( $Env:CONDA_PROMPT_MODIFIER ) {
|
||||||
if (Test-Path -Path "$PWD\pyproject.toml") {
|
# $promptConda = $Env:CONDA_PROMPT_MODIFIER.Replace("`(","").Replace(")","")
|
||||||
$pythonVersion = $(python --version).Split(" ")[1]
|
# $pythonVersion = $(python --version).Split(" ")[1]
|
||||||
$prompt += " `e[33m`u{e73c} $pythonVersion"
|
# $prompt += " `e[33m`u{e73c} $promptConda $pythonVersion"
|
||||||
}
|
# }
|
||||||
## Node.js
|
# # Programming Language (by Get-ChildItem)
|
||||||
if (Test-Path -Path "$PWD\package.json") {
|
# ## Python
|
||||||
$nodeVersion = $(node --version)
|
# if (Test-Path -Path "$PWD\pyproject.toml") {
|
||||||
$prompt += " `e[32m`u{e3a0} $nodeVersion"
|
# $pythonVersion = $(python --version).Split(" ")[1]
|
||||||
# Locked
|
# $prompt += " `e[33m`u{e73c} $pythonVersion"
|
||||||
if (Test-Path -Path "$PWD\yarn.lock" || Test-Path -Path "$PWD\package-lock.json") {
|
# }
|
||||||
$prompt += "`u{f023}"
|
# ## Node.js
|
||||||
}
|
# if (Test-Path -Path "$PWD\package.json") {
|
||||||
}
|
# $nodeVersion = $(node --version)
|
||||||
## .NET
|
# $prompt += " `e[32m`u{e3a0} $nodeVersion"
|
||||||
### C Sharp
|
# # Locked
|
||||||
if (Test-Path -Path "$PWD\*.csproj") {
|
# if (Test-Path -Path "$PWD\yarn.lock" || Test-Path -Path "$PWD\package-lock.json") {
|
||||||
$dotnetVersion = $(dotnet --version)
|
# $prompt += "`u{f023}"
|
||||||
$prompt += " `e[34m`u{e648} $dotnetVersion"
|
# }
|
||||||
}
|
# }
|
||||||
### F Sharp
|
# ## .NET
|
||||||
if (Test-Path -Path "$PWD\*.fsproj") {
|
# ### C Sharp
|
||||||
$dotnetVersion = $(dotnet --version)
|
# if (Test-Path -Path "$PWD\*.csproj") {
|
||||||
$prompt += " `e[35m`u{e65a} $dotnetVersion"
|
# $dotnetVersion = $(dotnet --version)
|
||||||
}
|
# $prompt += " `e[34m`u{e648} $dotnetVersion"
|
||||||
## Rust
|
# }
|
||||||
if (Test-Path -Path "$PWD\Cargo.toml") {
|
# ### F Sharp
|
||||||
$rustVersion = $(cargo --version).Split(" ")[1]
|
# if (Test-Path -Path "$PWD\*.fsproj") {
|
||||||
$prompt += " `e[31m`u{e7a8} $rustVersion"
|
# $dotnetVersion = $(dotnet --version)
|
||||||
}
|
# $prompt += " `e[35m`u{e65a} $dotnetVersion"
|
||||||
## Java
|
# }
|
||||||
if (Test-Path -Path "$PWD\pom.xml" || Test-Path -Path "$PWD\build.gradle") {
|
# ## Rust
|
||||||
$javaVersion = $(java --version).Split(" ")[1]
|
# if (Test-Path -Path "$PWD\Cargo.toml") {
|
||||||
$prompt += " `e[31m`u{e738} $javaVersion"
|
# $rustVersion = $(cargo --version).Split(" ")[1]
|
||||||
}
|
# $prompt += " `e[31m`u{e7a8} $rustVersion"
|
||||||
## Makefile
|
# }
|
||||||
if (Test-Path -Path "$PWD\Makefile") {
|
# ## Java
|
||||||
$prompt += " `e[32m`u{e673}"
|
# if (Test-Path -Path "$PWD\pom.xml" || Test-Path -Path "$PWD\build.gradle") {
|
||||||
}
|
# $javaVersion = $(java --version).Split(" ")[1]
|
||||||
if (Test-Path -Path "$PWD\CMakeLists.txt") {
|
# $prompt += " `e[31m`u{e738} $javaVersion"
|
||||||
$prompt += " `e[32m `u{e61d}"
|
# }
|
||||||
}
|
# ## Makefile
|
||||||
# Docker
|
# if (Test-Path -Path "$PWD\Makefile") {
|
||||||
if (Test-Path -Path "$PWD\Dockerfile" || Test-Path -Path "$PWD\docker-compose.yml") {
|
# $prompt += " `e[32m`u{e673}"
|
||||||
$prompt += " `e[33m`u{f21f}"
|
# }
|
||||||
}
|
# if (Test-Path -Path "$PWD\CMakeLists.txt") {
|
||||||
# Weather
|
# $prompt += " `e[32m `u{e61d}"
|
||||||
# if ( $global:promptWeather ) {
|
# }
|
||||||
# $prompt += $(Write-WeatherCurrent -City "Edinburgh" -Country "UK" -Unit "metric" -Inline -Apikey $Env:WEATHER_API_KEY)
|
# # Docker
|
||||||
# }
|
# if (Test-Path -Path "$PWD\Dockerfile" || Test-Path -Path "$PWD\docker-compose.yml") {
|
||||||
# Error on last command
|
# $prompt += " `e[33m`u{f21f}"
|
||||||
## TODO: Seems does not work
|
# }
|
||||||
if ($?) {
|
# # Weather
|
||||||
$prompt += "`n`e[32m PS > `e[0m"
|
# # if ( $global:promptWeather ) {
|
||||||
} else {
|
# # $prompt += $(Write-WeatherCurrent -City "Edinburgh" -Country "UK" -Unit "metric" -Inline -Apikey $Env:WEATHER_API_KEY)
|
||||||
$prompt += "`n`e[31m PS > `e[0m"
|
# # }
|
||||||
}
|
# # Error on last command
|
||||||
return $prompt
|
# ## TODO: Seems does not work
|
||||||
}
|
# if ($?) {
|
||||||
|
# $prompt += "`n`e[32m PS > `e[0m"
|
||||||
|
# } else {
|
||||||
|
# $prompt += "`n`e[31m PS > `e[0m"
|
||||||
|
# }
|
||||||
|
# return $prompt
|
||||||
|
# }
|
||||||
23
powershell/readme.md
Normal file
23
powershell/readme.md
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# PowerShell Profile
|
||||||
|
|
||||||
|
This is the cross-platform PowerShell profile for PowerShell Core
|
||||||
|
|
||||||
|
```text
|
||||||
|
.
|
||||||
|
├── Aliases.ps1
|
||||||
|
├── Keymap.ps1 # keymaps, optimize for Vi-Mode and Colemak
|
||||||
|
├── Modules.ps1
|
||||||
|
├── Navigation.ps1
|
||||||
|
├── Prompt.ps1
|
||||||
|
├── readme.md
|
||||||
|
└── Scripts.ps1
|
||||||
|
|
||||||
|
1 directory, 7 files
|
||||||
|
```
|
||||||
|
|
||||||
|
| Keymap | Action | Mode |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `^a` | To Beginning of Line | All |
|
||||||
|
| `^e` | To End of Line | All |
|
||||||
|
| `^[` | To Normal Mode | Insert |
|
||||||
|
|
||||||
359
win/WindowsTerminal.json
Normal file
359
win/WindowsTerminal.json
Normal file
|
|
@ -0,0 +1,359 @@
|
||||||
|
{
|
||||||
|
"$help": "https://aka.ms/terminal-documentation",
|
||||||
|
"$schema": "https://aka.ms/terminal-profiles-schema",
|
||||||
|
"actions":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"command":
|
||||||
|
{
|
||||||
|
"action": "copy",
|
||||||
|
"singleLine": false
|
||||||
|
},
|
||||||
|
"id": "User.copy.644BA8F2",
|
||||||
|
"keys": "ctrl+c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "paste",
|
||||||
|
"id": "User.paste",
|
||||||
|
"keys": "ctrl+v"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "find",
|
||||||
|
"id": "User.find",
|
||||||
|
"keys": "ctrl+shift+f"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command":
|
||||||
|
{
|
||||||
|
"action": "splitPane",
|
||||||
|
"split": "auto",
|
||||||
|
"splitMode": "duplicate"
|
||||||
|
},
|
||||||
|
"id": "User.splitPane.A6751878",
|
||||||
|
"keys": "alt+shift+d"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"alwaysShowNotificationIcon": true,
|
||||||
|
"copyFormatting": "none",
|
||||||
|
"copyOnSelect": false,
|
||||||
|
"defaultInputScope": "alphanumericHalfWidth",
|
||||||
|
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
|
||||||
|
"focusFollowMouse": false,
|
||||||
|
"language": "zh-Hans",
|
||||||
|
"minimizeToNotificationArea": false,
|
||||||
|
"newTabMenu":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "remainingProfiles"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"profiles":
|
||||||
|
{
|
||||||
|
"defaults":
|
||||||
|
{
|
||||||
|
"adjustIndistinguishableColors": "always",
|
||||||
|
"antialiasingMode": "cleartype",
|
||||||
|
"autoMarkPrompts": true,
|
||||||
|
"backgroundImageOpacity": 0.3,
|
||||||
|
"colorScheme": "Catppuccin Mocha",
|
||||||
|
"compatibility.reloadEnvironmentVariables": false,
|
||||||
|
"experimental.retroTerminalEffect": false,
|
||||||
|
"font":
|
||||||
|
{
|
||||||
|
"colorGlyphs": true,
|
||||||
|
"face": "CaskaydiaCove Nerd Font",
|
||||||
|
"features":
|
||||||
|
{
|
||||||
|
"rlig": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"opacity": 40,
|
||||||
|
"scrollbarState": "visible",
|
||||||
|
"showMarksOnScrollbar": true,
|
||||||
|
"useAcrylic": true
|
||||||
|
},
|
||||||
|
"list":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"colorScheme": "Catppuccin Frappe",
|
||||||
|
"commandline": "\"C:\\Program Files\\WindowsApps\\Microsoft.PowerShell_7.4.6.0_x64__8wekyb3d8bbwe\\pwsh.exe\"",
|
||||||
|
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
|
||||||
|
"hidden": false,
|
||||||
|
"name": "PowerShell",
|
||||||
|
"opacity": 50,
|
||||||
|
"source": "Windows.Terminal.PowershellCore",
|
||||||
|
"tabTitle": "PS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"colorScheme": "Tokyo Night",
|
||||||
|
"commandline": "C:\\WINDOWS\\system32\\wsl.exe -d Arch",
|
||||||
|
"guid": "{a5a97cb8-8961-5535-816d-772efe0c6a3f}",
|
||||||
|
"hidden": false,
|
||||||
|
"icon": "D:\\Assets\\Icons\\arch.png",
|
||||||
|
"name": "Arch",
|
||||||
|
"source": "Windows.Terminal.Wsl"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"colorScheme": "Catppuccin Macchiato",
|
||||||
|
"commandline": "\"C:\\Program Files\\WindowsApps\\Microsoft.PowerShell_7.4.6.0_x64__8wekyb3d8bbwe\\pwsh.exe\"",
|
||||||
|
"elevate": true,
|
||||||
|
"guid": "{ed7f021f-014d-4ca8-b3f2-811f745950db}",
|
||||||
|
"hidden": false,
|
||||||
|
"icon": "ms-appx:///ProfileIcons/pwsh.png",
|
||||||
|
"name": "Admin",
|
||||||
|
"opacity": 100,
|
||||||
|
"startingDirectory": "%USERPROFILE%",
|
||||||
|
"tabTitle": "Root"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"colorScheme": "Ubuntu-ColorScheme",
|
||||||
|
"commandline": "C:\\WINDOWS\\system32\\wsl.exe -d Ubuntu-22.04",
|
||||||
|
"font":
|
||||||
|
{
|
||||||
|
"face": "CaskaydiaCove Nerd Font"
|
||||||
|
},
|
||||||
|
"guid": "{c1061641-0172-4aec-b52d-dfc2b991553a}",
|
||||||
|
"hidden": false,
|
||||||
|
"icon": "D:\\Assets\\Icons\\ubuntu.png",
|
||||||
|
"name": "Ubuntu",
|
||||||
|
"startingDirectory": "~"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"guid": "{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}",
|
||||||
|
"hidden": false,
|
||||||
|
"name": "Git Bash",
|
||||||
|
"source": "Git"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"colorScheme": "Solarized Light",
|
||||||
|
"commandline": "\"C:\\Program Files\\WindowsApps\\Microsoft.PowerShell_7.4.6.0_x64__8wekyb3d8bbwe\\pwsh.exe\"",
|
||||||
|
"guid": "{39030c99-17fd-4feb-913f-c149a2826247}",
|
||||||
|
"hidden": false,
|
||||||
|
"icon": "ms-appx:///ProfileIcons/pwsh.png",
|
||||||
|
"name": "Light",
|
||||||
|
"opacity": 100,
|
||||||
|
"startingDirectory": "%USERPROFILE%",
|
||||||
|
"tabTitle": "PS",
|
||||||
|
"useAcrylic": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"schemes":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"background": "#303446",
|
||||||
|
"black": "#51576D",
|
||||||
|
"blue": "#8CAAEE",
|
||||||
|
"brightBlack": "#626880",
|
||||||
|
"brightBlue": "#8CAAEE",
|
||||||
|
"brightCyan": "#81C8BE",
|
||||||
|
"brightGreen": "#A6D189",
|
||||||
|
"brightPurple": "#F4B8E4",
|
||||||
|
"brightRed": "#E78284",
|
||||||
|
"brightWhite": "#A5ADCE",
|
||||||
|
"brightYellow": "#E5C890",
|
||||||
|
"cursorColor": "#F2D5CF",
|
||||||
|
"cyan": "#81C8BE",
|
||||||
|
"foreground": "#C6D0F5",
|
||||||
|
"green": "#A6D189",
|
||||||
|
"name": "Catppuccin Frappe",
|
||||||
|
"purple": "#F4B8E4",
|
||||||
|
"red": "#E78284",
|
||||||
|
"selectionBackground": "#626880",
|
||||||
|
"white": "#B5BFE2",
|
||||||
|
"yellow": "#E5C890"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"background": "#EFF1F5",
|
||||||
|
"black": "#5C5F77",
|
||||||
|
"blue": "#1E66F5",
|
||||||
|
"brightBlack": "#ACB0BE",
|
||||||
|
"brightBlue": "#1E66F5",
|
||||||
|
"brightCyan": "#179299",
|
||||||
|
"brightGreen": "#40A02B",
|
||||||
|
"brightPurple": "#EA76CB",
|
||||||
|
"brightRed": "#D20F39",
|
||||||
|
"brightWhite": "#BCC0CC",
|
||||||
|
"brightYellow": "#DF8E1D",
|
||||||
|
"cursorColor": "#DC8A78",
|
||||||
|
"cyan": "#179299",
|
||||||
|
"foreground": "#4C4F69",
|
||||||
|
"green": "#40A02B",
|
||||||
|
"name": "Catppuccin Latte",
|
||||||
|
"purple": "#EA76CB",
|
||||||
|
"red": "#D20F39",
|
||||||
|
"selectionBackground": "#ACB0BE",
|
||||||
|
"white": "#ACB0BE",
|
||||||
|
"yellow": "#DF8E1D"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"background": "#24273A",
|
||||||
|
"black": "#494D64",
|
||||||
|
"blue": "#8AADF4",
|
||||||
|
"brightBlack": "#5B6078",
|
||||||
|
"brightBlue": "#8AADF4",
|
||||||
|
"brightCyan": "#8BD5CA",
|
||||||
|
"brightGreen": "#A6DA95",
|
||||||
|
"brightPurple": "#F5BDE6",
|
||||||
|
"brightRed": "#ED8796",
|
||||||
|
"brightWhite": "#A5ADCB",
|
||||||
|
"brightYellow": "#EED49F",
|
||||||
|
"cursorColor": "#F4DBD6",
|
||||||
|
"cyan": "#8BD5CA",
|
||||||
|
"foreground": "#CAD3F5",
|
||||||
|
"green": "#A6DA95",
|
||||||
|
"name": "Catppuccin Macchiato",
|
||||||
|
"purple": "#F5BDE6",
|
||||||
|
"red": "#ED8796",
|
||||||
|
"selectionBackground": "#5B6078",
|
||||||
|
"white": "#B8C0E0",
|
||||||
|
"yellow": "#EED49F"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"background": "#1E1E2E",
|
||||||
|
"black": "#45475A",
|
||||||
|
"blue": "#89B4FA",
|
||||||
|
"brightBlack": "#585B70",
|
||||||
|
"brightBlue": "#89B4FA",
|
||||||
|
"brightCyan": "#94E2D5",
|
||||||
|
"brightGreen": "#A6E3A1",
|
||||||
|
"brightPurple": "#F5C2E7",
|
||||||
|
"brightRed": "#F38BA8",
|
||||||
|
"brightWhite": "#A6ADC8",
|
||||||
|
"brightYellow": "#F9E2AF",
|
||||||
|
"cursorColor": "#F5E0DC",
|
||||||
|
"cyan": "#94E2D5",
|
||||||
|
"foreground": "#CDD6F4",
|
||||||
|
"green": "#A6E3A1",
|
||||||
|
"name": "Catppuccin Mocha",
|
||||||
|
"purple": "#F5C2E7",
|
||||||
|
"red": "#F38BA8",
|
||||||
|
"selectionBackground": "#585B70",
|
||||||
|
"white": "#BAC2DE",
|
||||||
|
"yellow": "#F9E2AF"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"background": "#1A1B2C",
|
||||||
|
"black": "#414868",
|
||||||
|
"blue": "#7AA2F7",
|
||||||
|
"brightBlack": "#414868",
|
||||||
|
"brightBlue": "#7AA2F7",
|
||||||
|
"brightCyan": "#7DCFFF",
|
||||||
|
"brightGreen": "#73DACA",
|
||||||
|
"brightPurple": "#BB9AF7",
|
||||||
|
"brightRed": "#F7768E",
|
||||||
|
"brightWhite": "#C0CAF5",
|
||||||
|
"brightYellow": "#E0AF68",
|
||||||
|
"cursorColor": "#C0CAF5",
|
||||||
|
"cyan": "#7DCFFF",
|
||||||
|
"foreground": "#A9B1DC",
|
||||||
|
"green": "#73DACA",
|
||||||
|
"name": "Tokyo Night",
|
||||||
|
"purple": "#BB9AF7",
|
||||||
|
"red": "#F7768E",
|
||||||
|
"selectionBackground": "#28344A",
|
||||||
|
"white": "#C0CAF5",
|
||||||
|
"yellow": "#E0AF68"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"showTabsInTitlebar": true,
|
||||||
|
"startOnUserLogin": true,
|
||||||
|
"tabWidthMode": "titleLength",
|
||||||
|
"theme": "Catppuccin Macchiato",
|
||||||
|
"themes":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "Catppuccin Frappe",
|
||||||
|
"tab":
|
||||||
|
{
|
||||||
|
"background": "#303446FF",
|
||||||
|
"iconStyle": "default",
|
||||||
|
"showCloseButton": "always",
|
||||||
|
"unfocusedBackground": null
|
||||||
|
},
|
||||||
|
"tabRow":
|
||||||
|
{
|
||||||
|
"background": "#292C3CFF",
|
||||||
|
"unfocusedBackground": "#232634FF"
|
||||||
|
},
|
||||||
|
"window":
|
||||||
|
{
|
||||||
|
"applicationTheme": "dark",
|
||||||
|
"experimental.rainbowFrame": false,
|
||||||
|
"frame": null,
|
||||||
|
"unfocusedFrame": null,
|
||||||
|
"useMica": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Catppuccin Latte",
|
||||||
|
"tab":
|
||||||
|
{
|
||||||
|
"background": "#EFF1F5FF",
|
||||||
|
"iconStyle": "default",
|
||||||
|
"showCloseButton": "always",
|
||||||
|
"unfocusedBackground": null
|
||||||
|
},
|
||||||
|
"tabRow":
|
||||||
|
{
|
||||||
|
"background": "#E6E9EFFF",
|
||||||
|
"unfocusedBackground": "#DCE0E8FF"
|
||||||
|
},
|
||||||
|
"window":
|
||||||
|
{
|
||||||
|
"applicationTheme": "light",
|
||||||
|
"experimental.rainbowFrame": false,
|
||||||
|
"frame": null,
|
||||||
|
"unfocusedFrame": null,
|
||||||
|
"useMica": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Catppuccin Macchiato",
|
||||||
|
"tab":
|
||||||
|
{
|
||||||
|
"background": "#24273AFF",
|
||||||
|
"iconStyle": "default",
|
||||||
|
"showCloseButton": "always",
|
||||||
|
"unfocusedBackground": null
|
||||||
|
},
|
||||||
|
"tabRow":
|
||||||
|
{
|
||||||
|
"background": "#1E2030FF",
|
||||||
|
"unfocusedBackground": "#181926FF"
|
||||||
|
},
|
||||||
|
"window":
|
||||||
|
{
|
||||||
|
"applicationTheme": "dark",
|
||||||
|
"experimental.rainbowFrame": false,
|
||||||
|
"frame": null,
|
||||||
|
"unfocusedFrame": null,
|
||||||
|
"useMica": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Catppuccin Mocha",
|
||||||
|
"tab":
|
||||||
|
{
|
||||||
|
"background": "#1E1E2EFF",
|
||||||
|
"iconStyle": "default",
|
||||||
|
"showCloseButton": "always",
|
||||||
|
"unfocusedBackground": null
|
||||||
|
},
|
||||||
|
"tabRow":
|
||||||
|
{
|
||||||
|
"background": "#181825FF",
|
||||||
|
"unfocusedBackground": "#11111BFF"
|
||||||
|
},
|
||||||
|
"window":
|
||||||
|
{
|
||||||
|
"applicationTheme": "dark",
|
||||||
|
"experimental.rainbowFrame": false,
|
||||||
|
"frame": null,
|
||||||
|
"unfocusedFrame": null,
|
||||||
|
"useMica": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"useAcrylicInTabRow": true
|
||||||
|
}
|
||||||
|
|
@ -1 +1,50 @@
|
||||||
# Windows dotfiles
|
# Windows dotfiles
|
||||||
|
|
||||||
|
By following the Windows Directory Standard, assign the following directories corresponding to `$XDG_CONFIG` in Unix:
|
||||||
|
|
||||||
|
- `%APPDATA%` - `$XDG_CONFIG_HOME` (default: `%USERPROFILE%\AppData\Roaming`)
|
||||||
|
|
||||||
|
|
||||||
|
## PowerShell Profile
|
||||||
|
|
||||||
|
This is the *[PowerShell Core](https://github.com/PowerShell/PowerShell)* profile, not the legacy *Windows PowerShell* profile.
|
||||||
|
|
||||||
|
By default, PowerShell profile is stored in `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1`.
|
||||||
|
|
||||||
|
It is convenient to use `$PROFILE` to locate the profile file.
|
||||||
|
|
||||||
|
```pwsh
|
||||||
|
Test-Path $PROFILE
|
||||||
|
```
|
||||||
|
|
||||||
|
To link the profile file:
|
||||||
|
|
||||||
|
```pwsh
|
||||||
|
New-Item -ItemType SymbolicLink -Path $PROFILE -Target "$DOTFILES\win\Microsoft.PowerShell_profile.ps1" -Force
|
||||||
|
```
|
||||||
|
|
||||||
|
I use [starship](https://starship.rs/) to customize the prompt, which is located in [`.dotfiles/.config/starship/starship_pwsh.toml`](../.config/starship/starship_pwsh.toml). This prompt config is cross-platform for powershell core, since I use the promp to identify the shell.
|
||||||
|
|
||||||
|
## `.wslconfig` - WSL Configuration
|
||||||
|
|
||||||
|
`.wslconfig` only supports `~/.wslconfig` as the configuration path
|
||||||
|
|
||||||
|
```pwsh
|
||||||
|
New-Item -ItemType SymbolicLink -Path "~\.wslconfig" -Target "$DOTFILES\win\.wslconfig" -Force
|
||||||
|
```
|
||||||
|
|
||||||
|
## Windows Terminal
|
||||||
|
|
||||||
|
Use Hard Link to sync Windows Terminal Settings since it doesn't support symlink.
|
||||||
|
|
||||||
|
```pwsh
|
||||||
|
New-Item -ItemType HardLink -Path "$Env:LocalAppData\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -Target "$DOTFILES\win\WindowsTerminal.json" -Force
|
||||||
|
```
|
||||||
|
|
||||||
|
## Neovide
|
||||||
|
|
||||||
|
Neovide configuration is (only) stored in `%APPDATA%\neovide\config.toml`
|
||||||
|
|
||||||
|
```pwsh
|
||||||
|
New-Item -ItemType SymbolicLink -Path "$Env:AppData\neovide\config.toml" -Target "$DOTFILES\win\neovide.toml" -Force
|
||||||
|
```
|
||||||
|
|
@ -57,6 +57,9 @@ scoop install main/ripgrep
|
||||||
scoop install main/wget
|
scoop install main/wget
|
||||||
scoop install main/wget2
|
scoop install main/wget2
|
||||||
scoop install main/cmake
|
scoop install main/cmake
|
||||||
|
scoop install main/bat
|
||||||
|
scoop install main/zoxide
|
||||||
|
scoop install main/dos2unix
|
||||||
|
|
||||||
# File Management
|
# File Management
|
||||||
scoop install extras/everything
|
scoop install extras/everything
|
||||||
|
|
@ -89,8 +92,8 @@ scoop install extras/neovide
|
||||||
|
|
||||||
|
|
||||||
# Security
|
# Security
|
||||||
scoop install main/bitwarden-cli
|
scoop bucket add keyguard https://github.com/AChep/keyguard-repo-scoop
|
||||||
scoop install extras/bitwarden
|
scoop install keyguard/keyguard
|
||||||
|
|
||||||
# PKM
|
# PKM
|
||||||
scoop install extras/obsidian
|
scoop install extras/obsidian
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,6 @@ alias ..="cd .."
|
||||||
alias ...="cd ../.."
|
alias ...="cd ../.."
|
||||||
alias ....="cd ../../.."
|
alias ....="cd ../../.."
|
||||||
alias .....="cd ../../../.."
|
alias .....="cd ../../../.."
|
||||||
alias ......="cd ../../../../.."
|
alias ......="cd ../../../../.."
|
||||||
|
|
||||||
|
eval "$(zoxide init zsh)"
|
||||||
1
zsh/prompt.zsh
Normal file
1
zsh/prompt.zsh
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
eval "$(starship init zsh)"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue