mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Update
This commit is contained in:
parent
7f86cbb9be
commit
e440b85d84
5 changed files with 256 additions and 50 deletions
199
.config/starship/starship.toml
Normal file
199
.config/starship/starship.toml
Normal file
|
|
@ -0,0 +1,199 @@
|
||||||
|
# starship.toml
|
||||||
|
# ~/.config/starship.toml
|
||||||
|
format = '''$os$time $username @ $hostname $directory $all$character'''
|
||||||
|
|
||||||
|
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 = ".../"
|
||||||
|
|
||||||
|
[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 = " "
|
||||||
|
|
@ -99,7 +99,7 @@ brew install mas # Mac App Store CLI
|
||||||
|
|
||||||
# File Management
|
# File Management
|
||||||
brew install --cask keka # Archiver
|
brew install --cask keka # Archiver
|
||||||
brew install --cask google-drive # Cloud Storage
|
brew install --cask google-drive # `sudo` # Cloud Storage
|
||||||
|
|
||||||
# CLI
|
# CLI
|
||||||
brew install --formula cfiles
|
brew install --formula cfiles
|
||||||
|
|
@ -129,6 +129,7 @@ brew install --cask rider
|
||||||
# Programming Languages
|
# Programming Languages
|
||||||
brew install --formula lua
|
brew install --formula lua
|
||||||
brew install --formula luajit
|
brew install --formula luajit
|
||||||
|
brew install --formula luarocks
|
||||||
brew install --formula node
|
brew install --formula node
|
||||||
brew install --formula dotnet
|
brew install --formula dotnet
|
||||||
brew install --formula go
|
brew install --formula go
|
||||||
|
|
@ -136,7 +137,7 @@ brew install --formula go
|
||||||
brew install --cask miniconda
|
brew install --cask miniconda
|
||||||
|
|
||||||
# PowerShells
|
# PowerShells
|
||||||
brew install --cask powershell
|
brew install --cask powershell # `sudo`
|
||||||
|
|
||||||
# Launchers
|
# Launchers
|
||||||
brew install --cask raycast
|
brew install --cask raycast
|
||||||
|
|
@ -147,7 +148,7 @@ brew install --cask iterm2
|
||||||
|
|
||||||
|
|
||||||
# IME
|
# IME
|
||||||
brew install --cask squirrel
|
brew install --cask squirrel # `sudo`
|
||||||
|
|
||||||
# PKM
|
# PKM
|
||||||
brew install --cask obsidian
|
brew install --cask obsidian
|
||||||
|
|
@ -162,7 +163,7 @@ brew install --cask iina
|
||||||
brew install --cask keyguard
|
brew install --cask keyguard
|
||||||
|
|
||||||
# Engineering
|
# Engineering
|
||||||
brew install --cask ltspice
|
brew install --cask ltspice # `sudo`
|
||||||
|
|
||||||
# Office
|
# Office
|
||||||
brew install --cask mactex-no-gui
|
brew install --cask mactex-no-gui
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
# VSCode Configs
|
|
||||||
|
|
||||||
## Navigator
|
|
||||||
|
|
||||||
- [HyperSnips](./hsnips/readme.md)
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
" $XDG_CONFIG_HOME/vscode/vscode.vimrc
|
" ~/.config/vscode/vscode.vimrc
|
||||||
" New-Item -ItemType SymbolicLink -Path ~\.config\vscode\vscode.vimrc -Target ~\.dotfiles\vscode\vscode.vimrc
|
" New-Item -ItemType SymbolicLink -Path ~\.config\vscode\vscode.vimrc -Target ~\.dotfiles\vscode\vscode.vimrc
|
||||||
" ln -sf $DOTFILES/vscode/vscode.vimrc $XDG_CONFIG_HOME/vscode/vscode.vimrc
|
" ln -sf $DOTFILES/vscode/vscode.vimrc $XDG_CONFIG_HOME/vscode/vscode.vimrc
|
||||||
" And go to vscode vim setting:
|
" And go to vscode vim setting:
|
||||||
"vim.vimrc.path": "$HOME/.config/vscode/vscode.vimrc",
|
"vim.vimrc.path": "$HOME/.config/vscode/vscode.vimrc",
|
||||||
|
|
||||||
" Word wrap
|
" Arrow remap
|
||||||
noremap n gj
|
noremap n j
|
||||||
noremap e gk
|
noremap e k
|
||||||
noremap i l
|
noremap i l
|
||||||
|
|
||||||
" Similar position to i
|
" Similar position to i
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,8 @@ New-Item -ItemType SymbolicLink -Path "~\.npmrc" -Target "$DOTFILES\.npmrc"
|
||||||
New-Item -ItemType SymbolicLink -Path "~\.pip.conf" -Target "$DOTFILES\.pip.conf"
|
New-Item -ItemType SymbolicLink -Path "~\.pip.conf" -Target "$DOTFILES\.pip.conf"
|
||||||
New-Item -ItemType SymbolicLink -Path "~\.wslconfig" -Target "$DOTFILES\win\.wslconfig"
|
New-Item -ItemType SymbolicLink -Path "~\.wslconfig" -Target "$DOTFILES\win\.wslconfig"
|
||||||
New-Item -ItemType SymbolicLink -Path "~\.vscode.vimrc" -Target "$DOTFILES\vscode\vscode.vimrc"
|
New-Item -ItemType SymbolicLink -Path "~\.vscode.vimrc" -Target "$DOTFILES\vscode\vscode.vimrc"
|
||||||
Get-ChildItem -Force -Filter .* | ForEach-Object { $_.Attributes += "Hidden" } # Hide dotfiles
|
# Hide dotfiles
|
||||||
|
Get-ChildItem -Force -Filter .* | ForEach-Object { $_.Attributes += "Hidden" }
|
||||||
|
|
||||||
# Windows Terminal
|
# Windows Terminal
|
||||||
if (Get-Command wt -ErrorAction SilentlyContinue) {
|
if (Get-Command wt -ErrorAction SilentlyContinue) {
|
||||||
|
|
@ -42,57 +43,62 @@ Get-AppxPackage *Map* | Remove-AppxPackage # 地圖
|
||||||
# Get-AppxPackage *clipchamp* | Remove-AppxPackage # 其實這個還行
|
# Get-AppxPackage *clipchamp* | Remove-AppxPackage # 其實這個還行
|
||||||
|
|
||||||
# Added Packages
|
# Added Packages
|
||||||
scoop add bucket nerd-fonts
|
scoop bucket add main
|
||||||
scoop add bucket extras
|
scoop bucket add nerd-fonts
|
||||||
|
scoop bucket add extras
|
||||||
|
scoop bucket add nonportable
|
||||||
|
|
||||||
# CLI Tools
|
# CLI Tools
|
||||||
# winget install -e --id GnuWin32.Grep # Use Select-String instead
|
# winget install -e --id GnuWin32.Grep # Use Select-String instead
|
||||||
winget install -e --id GnuWin32.Make
|
scoop install main/make
|
||||||
# winget install -e --id GnuWin32.Which # Use Get-Command instead
|
# winget install -e --id GnuWin32.Which # Use Get-Command instead
|
||||||
winget install -e --id junegunn.fzf
|
scoop install main/fzf
|
||||||
winget install -e --id BurntSushi.ripgrep.MSVC
|
scoop install main/ripgrep
|
||||||
winget install -e --id JernejSimoncic.Wget
|
scoop install main/wget
|
||||||
winget install -e --id GNU.Wget2
|
scoop install main/wget2
|
||||||
|
scoop install main/cmake
|
||||||
|
|
||||||
# File Management
|
# File Management
|
||||||
winget install -e --id voidtools.Everything
|
scoop install extras/everything
|
||||||
winget install -e --id 7zip.7zip
|
scoop install main/7zip
|
||||||
winget install -e --id Bandisoft.Bandizip
|
scoop install extras/bandizip
|
||||||
winget install -e --id JohnMacFarlane.Pandoc
|
scoop install main/pandoc
|
||||||
winget install -e --id SumatraPDF.SumatraPDF
|
scoop install extras/sumatrapdf
|
||||||
winget install -e --id Google.GoogleDrive
|
winget install -e --id Google.GoogleDrive
|
||||||
|
|
||||||
# System Enhancements
|
# System Enhancements
|
||||||
winget install -e --id Rem0o.FanControl
|
scoop install extras/fancontrol
|
||||||
winget install -e --id Microsoft.PowerToys
|
scoop install extras/powertoys
|
||||||
winget install -e --id Guru3D.Afterburner
|
scoop install extras/msiafterburner
|
||||||
winget install -e --id Yuanli.uTools
|
winget install -e --id Yuanli.uTools
|
||||||
winget install -e --id GeekUninstaller.GeekUninstaller
|
scoop install extras/geekuninstaller
|
||||||
winget install -e --id Flow-Launcher.Flow-Launcher
|
scoop install extras/flow-launcher
|
||||||
# winget install -e --id AutoHotkey.AutoHotkey
|
# winget install -e --id AutoHotkey.AutoHotkey
|
||||||
winget install -e --id 9PLQFDG8HH9D --source msstore # AutoHotkey v2 Store Edition
|
scoop install extras/autohotkey
|
||||||
winget install -e --id Mactype.Mactype
|
scoop install nonportable/mactype-np
|
||||||
winget install -e --id Eassos.DiskGenius
|
scoop install extras/diskgenius
|
||||||
# winget install -e --id Nilesoft.Shell
|
# winget install -e --id Nilesoft.Shell
|
||||||
# scoop install umi-ocr-paddle
|
# scoop install umi-ocr-paddle
|
||||||
|
|
||||||
# Editor
|
# Editor
|
||||||
winget install -e --id vim.vim
|
scoop install main/vim
|
||||||
winget install -e --id Neovim.Neovim
|
scoop install main/neovim
|
||||||
winget install -e --id VSCodium.VSCodium
|
scoop install extras/vscodium
|
||||||
winget install -e --id Microsoft.VisualStudioCode
|
scoop install extras/vscode
|
||||||
winget install -e --id Neovide.Neovide
|
scoop install extras/neovide
|
||||||
|
|
||||||
|
|
||||||
# Security
|
# Security
|
||||||
winget install -e --id Bitwarden.Bitwarden
|
scoop install main/bitwarden-cli
|
||||||
|
scoop install extras/bitwarden
|
||||||
|
|
||||||
# PKM
|
# PKM
|
||||||
winget install -e --id Obsidian.Obsidian
|
scoop install extras/obsidian
|
||||||
winget install -e --id 9P7HPMXP73K4 # Siyuan
|
winget install -e --id 9P7HPMXP73K4 # Siyuan
|
||||||
winget install -e --id appmakes.Typora
|
scoop install extras/typora
|
||||||
winget install -e --id DigitalScholar.Zotero
|
scoop install extras/zotero
|
||||||
winget install -e --id Anki.Anki
|
scoop install extras/anki
|
||||||
winget install -e --id Notion.Notion
|
# winget install -e --id Notion.Notion
|
||||||
|
|
||||||
# Browser
|
# Browser
|
||||||
# Use Microsoft Edge directly
|
# Use Microsoft Edge directly
|
||||||
|
|
@ -100,15 +106,18 @@ winget install -e --id Notion.Notion
|
||||||
# winget install -e --id Mozilla.Firefox.Nightly # Not working
|
# winget install -e --id Mozilla.Firefox.Nightly # Not working
|
||||||
|
|
||||||
# Programming Languages
|
# Programming Languages
|
||||||
winget install -e --id Python.Python.3.12
|
winget install -e --id Python.Python.3.13
|
||||||
winget install -e --id Anaconda.Miniconda3
|
winget install -e --id Anaconda.Miniconda3
|
||||||
winget install -e --id OpenJS.NodeJS
|
winget install -e --id OpenJS.NodeJS
|
||||||
winget install -e --id Rustlang.Rustup
|
winget install -e --id Rustlang.Rustup
|
||||||
winget install -e --id Microsoft.DotNet.SDK.8
|
winget install -e --id Microsoft.DotNet.SDK.8
|
||||||
|
|
||||||
# Dev/IDE
|
# Dev
|
||||||
winget install -e --id Docker.DockerDesktop
|
scoop install extras/docker
|
||||||
winget install -e --id JesseDuffield.lazygit
|
scoop install extras/lazygit
|
||||||
|
|
||||||
|
# IDE
|
||||||
|
scoop install extras/rider
|
||||||
|
|
||||||
# Gaming
|
# Gaming
|
||||||
winget install -e --id Valve.Steam
|
winget install -e --id Valve.Steam
|
||||||
|
|
@ -117,7 +126,9 @@ winget install -e --id Valve.Steam
|
||||||
winget install -e --id Rime.Weasel # 小狼毫 Rime
|
winget install -e --id Rime.Weasel # 小狼毫 Rime
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
winget install --id 9N5LW3JBCXKF --source msstore # MSIX Packaging Tool
|
winget install -e --id 9N5LW3JBCXKF --source msstore # MSIX Packaging Tool
|
||||||
|
winget install -e --id 9PKTQ5699M62 --source msstore # iCloud
|
||||||
|
winget install -e --id RazerInc.RazerInstaller # Razer Synapse
|
||||||
|
|
||||||
# Social
|
# Social
|
||||||
winget install -e --id 9N97ZCKPD60Q --source msstore # Unigram (Telegram client)
|
winget install -e --id 9N97ZCKPD60Q --source msstore # Unigram (Telegram client)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue