mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
sync: from macOS 2024-12-05
This commit is contained in:
parent
7d220c3873
commit
053304c4d5
39 changed files with 1025 additions and 379 deletions
|
|
@ -220,7 +220,7 @@ mas install 836500024 # WeChat
|
|||
mas install 451108668 # QQ
|
||||
|
||||
# plum (Rime IME)
|
||||
curl -fsSL https://raw.githubusercontent.com/rime/plum/master/rime-install | bash
|
||||
curl -fsSL https://raw.githubusercontent.com/rime/plum/master/rime-install -o $HOME | bash
|
||||
|
||||
# Set default apps (duti)
|
||||
# The id of the app can be found by running
|
||||
|
|
|
|||
5
bootstrap/set_path.ps1
Normal file
5
bootstrap/set_path.ps1
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[System.Environment]::SetEnvironmentVariable("Path_EXT_0", "D:\bin", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("Path_EXT_0", "$Env:LocalAppData\Cargo\bin", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("Path_EXT_1", "$Env:LocalAppData\Go\bin", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("Path_EXT_2", "$Env:LocalAppData\Cargo\bin", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("Path_EXT_2", "", "User")
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#! /bin/bash
|
||||
# $DOTFILES/bootstrap/set_symblink_unix.bash
|
||||
# Date: 2024-12-01
|
||||
# Author: contact@js0ny.net
|
||||
# Author: js0ny
|
||||
# Set symbolic links for Unix-like systems
|
||||
mkdir -p $XDG_CONFIG_HOME/conda $XDG_CONFIG_HOME/git $XDG_CONFIG_HOME/ideavim $XDG_CONFIG_HOME/markdownlint $XDG_CONFIG_HOME/pip $XDG_CONFIG_HOME/neovide $XDG_CONFIG_HOME/powershell $XDG_CONFIG_HOME/vscode $XDG_CONFIG_HOME/NuGet $XDG_CONFIG_HOME/vim $XDG_CONFIG_HOME/tmux $XDG_CONFIG_HOME/npm $XDG_CONFIG_HOME/readline $XDG_CONFIG_HOME/ipython
|
||||
# Not support XDG_CONFIG_HOME but same directory
|
||||
|
|
@ -15,7 +15,6 @@ ln -sf $DOTFILES/common/gitconfig $XDG_CONFIG_HOME/git/config
|
|||
ln -sf $DOTFILES/common/glow.yaml ~/.config/glow/config.yml
|
||||
ln -sf $DOTFILES/common/haskeline ~/.haskeline
|
||||
ln -sf $DOTFILES/common/ideavimrc $XDG_CONFIG_HOME/ideavim/ideavimrc
|
||||
ln -sf $DOTFILES/common/inputrc $XDG_CONFIG_HOME/readline/inputrc
|
||||
ln -sf $DOTFILES/common/lesskey $XDG_CONFIG_HOME/lesskey
|
||||
ln -sf $DOTFILES/common/npmrc $NPM_CONFIG_USERCONFIG
|
||||
ln -sf $DOTFILES/common/NuGet.Config $XDG_CONFIG_HOME/NuGet/NuGet.Config
|
||||
|
|
@ -37,4 +36,6 @@ if [ $(uname) = "Darwin"]; then
|
|||
ln -sf $DOTFILES/platforms/mac/skhdrc $XDG_CONFIG_HOME/skhd/skhdrc
|
||||
ln -sf $DOTFILES/platforms/mac/sketchybarrc $XDG_CONFIG_HOME/sketchybar/sketchybarrc
|
||||
ln -sf $DOTFILES/platforms/mac/yabairc $XDG_CONFIG_HOME/yabai/yabairc
|
||||
else
|
||||
ln -sf $DOTFILES/common/inputrc $XDG_CONFIG_HOME/readline/inputrc
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# $DOTFILES\bootstrap\set_symlink_win.ps1
|
||||
# Date: 2024-12-01
|
||||
# Author: contact@js0ny.net
|
||||
# Author: js0ny
|
||||
# Set symlinks for dotfiles on Windows
|
||||
# 在 Windows 上设置 dotfiles 的符号链接
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ $linkDots = @{
|
|||
"$BASE_COMMON\NuGet.Config" = "$env:AppData\NuGet\NuGet.Config"
|
||||
"$BASE_COMMON\obsidian.vimrc" = "$env:UserProfile\Obsidian\.obsidian.vimrc"
|
||||
"$BASE_COMMON\pip.conf" = "$env:AppData\pip\pip.ini"
|
||||
"$BASE_COMMON\vim.noxdg.vimrc" = "$env:Vim\_vimrc"
|
||||
"$BASE_COMMON\vimrc" = "$env:Vim\_vimrc"
|
||||
"$BASE_TOOLS\ipython" = "$env:IPYTHONDIR"
|
||||
"$BASE_TOOLS\nvim" = "$env:XDG_CONFIG_HOME\nvim"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue