Affected files: .obsidian/workspace 02. PARA/03. Resources(資源)/Tool Setup/Windows Setup.md
5.2 KiB
5.2 KiB
Install tools
先安裝
- 手動安裝Google Drive,以取得本檔案。
自動安裝
- 安裝Chocolatey,用Administrator身份打開powershell,輸入下列指令:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- 用安裝常用的工具
choco install 7zip adobereader vscode hxd sublimetext4 microsoft-windows-terminal androidstudio intellijidea-community git winmerge freefilesync freedownloadmanager gsudo firacode cascadiacode sourcecodepro delta --yes
列表:
- 7zip
- adobereader
- vscode
- hxd
- sublimetext4
- microsoft-windows-terminal
- androidstudio
- intellijidea-community
- git
- winmerge
- freefilesync
- freedownloadmanager
- gsudo
- firacode
- cascadiacode
- sourcecodepro
- delta
移除:
- TeraCopy
- googlechrome
- make
手動安裝
- Google drive
- Google drive(Logitech)
- Python 3.6.3
- Python 3.9
- Visual Studio 2017
- Visual Studio 2019
- Office 365
- Lightroom
- Enpass
- ShareX
- win32diskimager
- 卡巴斯基
Portable App
- Aegisub portable
- Audacity 2.3.3
- Cheat Engine 7.0
- cmder v1.3.12
- ConEmu
- ConvertZZ.1.0.0.3
- CrystalDiskMark 6.0.1 x64
- EzMeta
- ffmpeg-2020-09-20-full_build
- FileZillaPortable
- Geek Uninstaller 1.4.7
- HxDPortable
- ImgBurnPortable
- IntelliJ IDEA
- JDownloader 2.0
- PhraseExpress
- Process Explorer 16.21
- Q-Dir 9.01
- Rufus
- Sandboxie
- Speccy
- ThunderbirdPortable
- WindowGrid 1.3.11
- wiztree_3_35_portable
Upgrade
Upgrade by Chocolately
choco upgrade all -y
Setup
Setup doskey in Command Prompt
- 切換到
Document資料夾。 - 建立
cmdinit.cmd,內容如下:
@echo off
doskey sl="C:\Program Files\Sublime Text 3\sublime_text.exe"
doskey ll=dir
doskey rrp="cd C:\Python363\lib\site-packages\RobotRun" $T C:
doskey rra=cd "G:\My Drive\codes\Projects\RobotRunApplications" $T G:
doskey gpull=git pull origin master
doskey gpush=git push origin master
doskey gs=git status
doskey gd=git diff
doskey e.=explorer.exe .
Setup bashrc in Git bash
- 打開
~/.bashrc。 - 內容如下:
export PATH="/c/Users/ahuang11/AppData/Local/Android/Sdk/platform-tools:$PATH"
alias adb="/c/EasyAVEngine/Tools/Android/ADB/adb.exe"
alias sl="/c/Program\ Files/Sublime\ Text/subl.exe"
alias fastboot='/c/Users/ahuang11/AppData/Local/Android/Sdk/platform-tools/fastboot.exe'
alias rrp='cd /c/Python363/lib/site-packages/RobotRun'
alias rra='cd /c/RobotRun'
alias rrd='cd /g/My\ Drive/codes/Projects/RobotRunDocs'
alias rro='cd /c/RobotRun/Output'
alias coderrp='cd "/c/Python363/lib/site-packages/RobotRun" ; code "/c/Python363/lib/site-packages/RobotRun"'
alias coderra='cd "/c/RobotRun"; code "/c/RobotRun"'
alias coderras='code "/d/GoogleDriveLogi/codes/Projects/RobotRunAutoServer"'
alias ctest='code "/g/My Drive/codes/test"'
alias ad='adb devices'
alias fd='fastboot devices'
alias e.='explorer.exe .'
##----- Connection -----
alias gods='ssh awin@192.168.1.11'
alias gorp320='ssh pi@192.168.1.20'
##----- Git -----
alias gs="git status"
alias gd="git diff"
alias gpull='git pull origin master'
alias gpush='git push origin master'
alias gpushmain='git push origin main'
alias gc='git clone'
alias gclogi='git clone --config user.name="Awin Huang" --config user.email=ahuang11@logitech.com $@'
##----- Python enviroment swich -----
alias pyv='echo PY_PYTHON=$PY_PYTHON'
function set_py() {
echo "Original Python verison is \"$PY_PYTHON\""
export PY_PYTHON=$1
echo " New Python verison is \"$PY_PYTHON\""
if [ ! -z "$2" ]
then
py "${@:2}"
fi
}
function py36() {
set_py "3.6.3" "$@"
}
function py39() {
set_py "3.9" "$@"
}
Setup Windows Terminal
- 開啟Windows Terminal。
- 按
ctrl + ,打開設定,之後參考Windows Terminal。