20250520(config laptop)

Run Settings
LanguagePython
Language Version
Run Command
apt install curl git zsh # Linux # sudo means super user, apt is a tool for installing and managing applications on Linux # Step 1: Update and upgrade Package Information sudo apt update # This command fetches the latest version of the package list from your distro's software repository sudo apt upgrade # This command downloads and installs the updates for each outdated package and dependency on your system # Step 2: Install curl, git and zsh apt install curl git zsh echo $SHELL # $SHELL is a comment, check if not zsh then which zsh #usr/bin/zsh chsh -s usr/bin/zsh # change shell to path usr/bin/zsh # Mac # Step 1: Install xcode from Apple AppStore, then download and install iTerm2 https://iterm2.com/ # Step 2: Change from bash to zsh echo $SHELL # $SHELL is a comment, check if not zsh then which zsh #usr/bin/zsh # chsh means add or change user database information, change default shell. chsh -s usr/bin/zsh # -s means Attempt to change the user’s shell to newshell # Step 3: Install Homebrew, it installs the stuff you need that Apple didn’t. https://brew.sh/ # Copy URL on the first page below from Homebrew website, paste it to iTerm2 command line and install # Delete any "$" at the beginning of command line below /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # When it is finished it shows below: # ==> Next steps: # - Run these commands in your terminal to add Homebrew to your PATH: # echo >> /Users/peteryung/.zprofile # echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/peteryung/.zprofile # eval "$(/opt/homebrew/bin/brew shellenv)" #...... # Step 4: Run 3 commands above on iTerm2 command line. # Verify installed packages both on Linux and MacOS curl --version git --version zsh --version # Commond Step1: Google, download and install VScode https://code.visualstudio.com/ # Click download for macOS, it's zip file, open it and extract it to Application folder # Open it and press "command + shift + P" # On the top text box type and run: >Shell Command: Install 'code' command in PATH # Step 2: After VScode installed # Go to user root directory ~%cd ~ # Run VScode ~%code . # VScode will be opened and the folder windows will be shown on the left # Step 3: Click Extensions icons on the left side bar # Install plug-ins of VScode by following names, install most popular plug-ins if same name are found # "Auto Close Tag","Auto Rename Tag","Better Comments","Color Highlight","Django" #,"Django Template","HTML Boilerplate","HTML CSS Support","Image preview" #,"ident-rainbow","Live Server","Print","vscode-icons" #,"Python"(It would also trigger to install 2 more plug-ins),"Pylance","Python Debugger" # Step 4: Type "theme" and install plug-ins you like # e.g."GitHub Theme" and "Atom One Dark Theme" # Step 5: Config plug-in settings by clicking left bottom gearwheel logo # Then, click right upper corner "Open Settings (JSON)" # Refer to the plug-ins help and cofig the JSON file above, click "command + s" to save changes # Step 6: Install Oh My Zsh https://ohmyz.sh/ # Click Install oh-my-zsh button, copy url under "Install oh-my-zsh via curl" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" # Step 7: Google to install powerlevel9k or powerlevel10k # On GitHub go to README Installation https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#oh-my-zsh # Scroll down and find Install Powerlevel10k itself. Find Installation by Oh My Zsh # 1. Clone the repository by execute command line below on iTerm2: git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k" # 2. Open folder ~/.zshrc on the left of VScode, find the line that sets ZSH_THEME, and change its value to "powerlevel10k/powerlevel10k". # Step 8: Download fonts by Google "hack nerd font" https://www.nerdfonts.com/ # e.g. Pick up Cousine Nerd Font # CousineNerdFont-Regular.ttf, CousineNerdFontMono-Regular.ttf, CousineNerdFontPropo-Regular.ttf # Step 9: Config iTerm2
Editor Settings
Theme
Key bindings
Full width
Lines