Skip to content

A private configuration manual! Windows & Linux

License

Notifications You must be signed in to change notification settings

akirco/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

41db4f2 · Mar 24, 2025
Feb 10, 2023
Dec 24, 2024
Sep 3, 2023
Aug 17, 2023
Aug 9, 2024
Aug 9, 2024
Mar 24, 2025
Mar 24, 2025
Mar 24, 2025
Aug 17, 2024
Aug 17, 2023
Aug 30, 2023
Aug 17, 2023
Dec 26, 2024
Oct 15, 2022
Aug 17, 2024

Repository files navigation

Table of Contents
  1. scoop
    • install
    • alias
    • bucket
  2. terminal settings
    • Nologo info
    • PSModules
    • $profile
  3. wsl

tips

  • if you have a better share to leave a link.

dev env setup

# #This scripts is not tested yet...
# run as admin
irm https://raw.githubusercontent.com/akirco/dotfiles/master/setup.ps1 | iex

neovim

scoop

  • install
# raw.githubusercontent.com is ok
iwr -useb 'https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' -outfile 'install.ps1'

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

.\install.ps1 -ScoopDir 'G:\scoop' -ScoopGlobalDir 'G:\scoop\global' -NoProxy

scoop install sudo git

sudo Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1

scoop install innounp dark
  • alias
scoop alias add i 'scoop install $args[0]' "install app"
scoop alias add s 'scoop search $args[0]' "search app"
scoop alias add ls 'scoop list' 'List installed apps'
scoop alias add rm 'scoop uninstall $args[0]' "uninstall app"
scoop alias add up 'scoop update $args[0]' "update app or itself"
scoop alias add rma 'scoop cleanup *' "remove old version"
scoop alias add rmc 'scoop cache rm *' "remove dowloaded file"
scoop alias add dir 'start $(scoop prefix $args[0])' "open app directory"
  • app bucket
scoop bucket add aki 'https://github.com/akirco/aki-apps.git'
  • app backup

scoop import apps.json

terminal settings

  • Nologo info
# dir  G:\scoop\shims\pwsh.exe -Nologo
  • PSModules

use scoop install follow modules

# link profile

cd d: && git clone https://github.com/akirco/dotfiles.git config


New-Item -Path $PROFILE.AllUsersCurrentHost -ItemType SymbolicLink -Target D:\config\powershell\Microsoft.PowerShell_profile.ps1 -Force

commands help

get-tips

WSL

  • wsl python env config
# get installer
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

# grant permission
sudo chmod 777 Miniconda3-latest-Linux-x86_64.sh

# install
./Miniconda3-latest-Linux-x86_64.sh

# rm installer
rm ./Miniconda3-latest-Linux-x86_64.sh -rf

# create pyenv
conda create -n py36 python=3.6

# activate pyenv
conda activate py36

# exit pyenv
conda deactivate
  • conda settings
# set conda mirror
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://pypi.tuna.tsinghua.edu.cn/simple/torch/

# set show channel urls
conda config --set show_channel_urls yes

# show config info
conda config --show

# restore mirror
conda config --remove-key channels

# remove old mirror
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/

# local whl install
## download .whl
wget <pkg-url>

## extract pkg to site-packages
conda install --use-local <xxx.tar.gz>

## link deps
conda install -c local <pkgPath>