Table of Contents
-
scoop
- install
- alias
- bucket
-
terminal settings
- Nologo info
- PSModules
- $profile
- 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
- use astronvim
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
- scoop-completion
- scoop-search(aki-apps)
- npm-completion
- Terminal-Icons
- CompletionPredictor
- DirectoryPredictor
- lazy-posh-git
- npm-completion
- posh-git
- PSFzf
- PSReadline(
already existed
) - z
- Pester(
already existed
) -
hosts(aki-apps)
- $profile
# 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>