mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Merge branch 'master' of https://www.github.com/js0ny/dotfiles
This commit is contained in:
commit
ee4b1ba440
77 changed files with 5679 additions and 4632 deletions
19
setup/requirements.txt
Normal file
19
setup/requirements.txt
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# This file lists all the must-have libraries for installing a new computer
|
||||
# For scripting use
|
||||
# pip install -r requirements.txt
|
||||
colorama
|
||||
# Basic Mathemetics
|
||||
numpy
|
||||
matplotlib
|
||||
# Data Analysis
|
||||
pandas
|
||||
# Image Processing
|
||||
pillow
|
||||
# Web Scraping
|
||||
requests
|
||||
beautifulsoup4
|
||||
# Testing
|
||||
pytest
|
||||
mypy
|
||||
# Healthy Neovim
|
||||
pynvim
|
||||
|
|
@ -1,22 +1,22 @@
|
|||
#! /bin/sh
|
||||
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
|
||||
mkdir -p ~/.config/zellij # Not support XDG_CONFIG_HOME but same directory
|
||||
mkdir -p $WAKATIME_HOME
|
||||
mkdir -p $XDG_STATE_HOME/vim/undo $XDG_STATE_HOME/vim/backup $XDG_STATE_HOME/vim/swap $XDG_STATE_HOME/vim/view
|
||||
# $DOTFILES/.config
|
||||
ln -sf $DOTFILES/.config/conda/condarc.yaml $XDG_CONFIG_HOME/conda/.condarc
|
||||
ln -sf $DOTFILES/.config/git/.gitconfig $XDG_CONFIG_HOME/git/config
|
||||
ln -sf $DOTFILES/.config/ideavim/ideavimrc.vimrc $XDG_CONFIG_HOME/ideavim/ideavimrc
|
||||
ln -sf $DOTFILES/.config/markdownlint/.markdownlint.json $XDG_CONFIG_HOME/markdownlint/markdownlint.json
|
||||
ln -sf $DOTFILES/.config/npm/npmrc $NPM_CONFIG_USERCONFIG
|
||||
ln -sf $DOTFILES/.config/NuGet/NuGet.Config $XDG_CONFIG_HOME/NuGet/NuGet.Config
|
||||
ln -sf $DOTFILES/.config/nvim/ $XDG_CONFIG_HOME/nvim
|
||||
ln -sf $DOTFILES/.config/pip/pip.conf $XDG_CONFIG_HOME/pip/pip.conf
|
||||
ln -sf $DOTFILES/.config/tmux/tmux.conf $XDG_CONFIG_HOME/tmux/tmux.conf
|
||||
ln -sf $DOTFILES/.config/vim/vimrc $XDG_CONFIG_HOME/vim/vimrc
|
||||
ln -sf $DOTFILES/.config/zellij/config.kdl ~/.config/zellij/config.kdl
|
||||
ln -sf $DOTFILES/.config/lesskey $XDG_CONFIG_HOME/lesskey
|
||||
# $DOTFILES/vscode
|
||||
ln -sf $DOTFILES/vscode/vscode.vimrc $XDG_CONFIG_HOME/vscode.vimrc
|
||||
# $DOTFILES root
|
||||
#! /bin/sh
|
||||
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
|
||||
mkdir -p ~/.config/zellij # Not support XDG_CONFIG_HOME but same directory
|
||||
mkdir -p $WAKATIME_HOME
|
||||
mkdir -p $XDG_STATE_HOME/vim/undo $XDG_STATE_HOME/vim/backup $XDG_STATE_HOME/vim/swap $XDG_STATE_HOME/vim/view
|
||||
# $DOTFILES/.config
|
||||
ln -sf $DOTFILES/.config/conda/condarc.yaml $XDG_CONFIG_HOME/conda/.condarc
|
||||
ln -sf $DOTFILES/.config/git/.gitconfig $XDG_CONFIG_HOME/git/config
|
||||
ln -sf $DOTFILES/.config/ideavim/ideavimrc.vimrc $XDG_CONFIG_HOME/ideavim/ideavimrc
|
||||
ln -sf $DOTFILES/.config/markdownlint/.markdownlint.json $XDG_CONFIG_HOME/markdownlint/markdownlint.json
|
||||
ln -sf $DOTFILES/.config/npm/npmrc $NPM_CONFIG_USERCONFIG
|
||||
ln -sf $DOTFILES/.config/NuGet/NuGet.Config $XDG_CONFIG_HOME/NuGet/NuGet.Config
|
||||
ln -sf $DOTFILES/.config/nvim/ $XDG_CONFIG_HOME/nvim
|
||||
ln -sf $DOTFILES/.config/pip/pip.conf $XDG_CONFIG_HOME/pip/pip.conf
|
||||
ln -sf $DOTFILES/.config/tmux/tmux.conf $XDG_CONFIG_HOME/tmux/tmux.conf
|
||||
ln -sf $DOTFILES/.config/vim/vimrc $XDG_CONFIG_HOME/vim/vimrc
|
||||
ln -sf $DOTFILES/.config/zellij/config.kdl ~/.config/zellij/config.kdl
|
||||
ln -sf $DOTFILES/.config/lesskey $XDG_CONFIG_HOME/lesskey
|
||||
# $DOTFILES/vscode
|
||||
ln -sf $DOTFILES/vscode/vscode.vimrc $XDG_CONFIG_HOME/vscode.vimrc
|
||||
# $DOTFILES root
|
||||
ln -sf $DOTFILES/.haskeline ~/.haskeline
|
||||
|
|
@ -16,7 +16,9 @@ Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
|
|||
# Set Environment Variables
|
||||
# Use %PATH_EXT% to prevent PATH from being too long
|
||||
[System.Environment]::SetEnvironmentVariable("Path_EXT_0", "D:\bin", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("Path_EXT_1", "", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("Path_EXT_0", "C:\Users\citoy\AppData\Local\Cargo\bin", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("Path_EXT_1", "C:\Users\citoy\AppData\Local\Cargo\bin", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("Path_EXT_2", "C:\Users\citoy\AppData\Local\Cargo\bin", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("Path_EXT_2", "", "User")
|
||||
$currentPath = [System.Environment]::GetEnvironmentVariable("Path", "User")
|
||||
if ($currentPath -notlike "*%PATH_EXT%*") {
|
||||
|
|
@ -59,7 +61,7 @@ New-Item -ItemType Directory -Path "$Env:AppData\aws" -Force
|
|||
# ~\.dotnet -> %LocalAppData%\dotNET :: .NET Core
|
||||
[System.Environment]::SetEnvironmentVariable("DOTNET_CLI_HOME", "$Env:LocalAppData\dotNET", "User")
|
||||
# ~\.emacs.d -> %AppData%\.emacs.d :: Emacs (This is default)
|
||||
# [System.Environment]::SetEnvironmentVariable("EMACS_HOME", "$Env:AppData\emacs.d", "User")
|
||||
# [System.Environment]::SetEnvironmentVariable("EMACS_HOME", "$Env:AppData\emacs.d", "User")
|
||||
# ~\go -> %LocalAppData%\GO :: golang
|
||||
[System.Environment]::SetEnvironmentVariable("GOPATH", "$Env:LocalAppData\GO", "User")
|
||||
# ~\.ipython -> %AppData%\ipython :: IPython
|
||||
|
|
@ -125,14 +127,14 @@ New-Item -ItemType SymbolicLink -Path "$Env:XDG_CONFIG_HOME\Vim\_vimrc" -Target
|
|||
New-Item -ItemType SymbolicLink -Path "~\.wslconfig" -Target "$DOTFILES\win\.wslconfig" -Force
|
||||
New-Item -ItemType SymbolicLink -Path "$Env:AppData\neovide\config.toml" -Target "$DOTFILES\win\neovide.toml" -Force
|
||||
# New-Item -ItemType SymbolicLink -Path "~\.vscode.vimrc" -Target "$DOTFILES\vscode\vscode.vimrc" Use Absolute Path
|
||||
# Hide dotfiles
|
||||
Get-ChildItem -Force -Filter .* -Path $HOME | ForEach-Object { $_.Attributes += "Hidden" }
|
||||
# Hide dotfiles
|
||||
Get-ChildItem -Force -Filter .* -Path $HOME | ForEach-Object { $_.Attributes += "Hidden" }
|
||||
@(
|
||||
Join-Path $HOME '.config'
|
||||
Join-Path $HOME '.dotfiles'
|
||||
) | ForEach-Object {
|
||||
) | ForEach-Object {
|
||||
$_.Attributes -band -bnot [System.IO.FileAttributes]::Hidden
|
||||
}
|
||||
}
|
||||
Set-Location $HOME\Documents
|
||||
# Match WindowsPowerShell and PowerShell
|
||||
Get-ChildItem -Force -Filter *owerShell | ForEach-Object { $_.Attributes += "Hidden" }
|
||||
|
|
@ -167,9 +169,12 @@ scoop install main/ripgrep
|
|||
scoop install main/wget
|
||||
scoop install main/wget2
|
||||
scoop install main/cmake
|
||||
scoop install main/bat
|
||||
scoop install main/zoxide
|
||||
scoop install main/dos2unix
|
||||
scoop install main/bat # modern cat
|
||||
scoop install main/zoxide # Directory Jump
|
||||
scoop install main/dos2unix # Convert line endings
|
||||
scoop install main/hyperfine # Benchmark
|
||||
scoop install main/bottom # System Monitor
|
||||
scoop install main/delta # diff
|
||||
|
||||
# File Management
|
||||
scoop install extras/everything
|
||||
|
|
@ -207,7 +212,7 @@ scoop install keyguard/keyguard
|
|||
|
||||
# PKM
|
||||
scoop install extras/obsidian
|
||||
winget install -e --id 9P7HPMXP73K4 # Siyuan
|
||||
winget install -e --id 9P7HPMXP73K4 # Siyuan
|
||||
scoop install extras/typora
|
||||
scoop install extras/zotero
|
||||
scoop install extras/anki
|
||||
|
|
@ -215,7 +220,7 @@ scoop install extras/anki
|
|||
|
||||
# Browser
|
||||
# Use Microsoft Edge directly
|
||||
# winget install -e --id TheBrowserCompany.Arc
|
||||
# winget install -e --id TheBrowserCompany.Arc
|
||||
# winget install -e --id Mozilla.Firefox.Nightly # Not working
|
||||
|
||||
# Programming Languages
|
||||
|
|
@ -223,7 +228,7 @@ winget install -e --id Python.Python.3.13
|
|||
winget install -e --id Anaconda.Miniconda3
|
||||
winget install -e --id OpenJS.NodeJS
|
||||
winget install -e --id Rustlang.Rustup
|
||||
winget install -e --id Microsoft.DotNet.SDK.8
|
||||
winget install -e --id Microsoft.DotNet.SDK.9
|
||||
|
||||
# Dev
|
||||
scoop install extras/docker
|
||||
|
|
@ -260,4 +265,4 @@ scoop install LXGWWenKaiMono # 霞鹜文楷Mono
|
|||
|
||||
# WSL
|
||||
scoop install archwsl
|
||||
wsl --set-version Arch 1
|
||||
wsl --set-version Arch 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue