Daily Oops!
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- published: true date: "2023-04-05 22:30" --- # My shinning development setup - from terminal emulators to code editors I started to boost my terminal setup this month(again!). I've used my new setup for a week, and I became more productive MENTALLY! No matter what you think, I will show off my setup here. 🤣 ## Terminal Emulator: WezTerm I use WezTerm as my terminal emulator. I've tried a lot of terminal emulators before, like: - [iTerm2](https://iterm2.com/)(2014 - 2019): It was used throughout my junior years since I bought first my Macbook Air. - [Kitty](https://sw.kovidgoyal.net/kitty/)(2019 - 2021): When everything becomes so slow on my old laptop, I started to try something new. This rust-based gem is what I found work best at that time. While iTerm is not getting new rendering engine yet. - [Hyper](https://hyper.is/) (2015-2015): xterm.js is fast in VSCode, but I don't want another electron app aka memory monster to eat my memory. That Pikachu theme is the only reason I use Hyper for. - Other electron-based terminals: Tried but forgotten. They all lag in my old hardware. - [Alacritty](https://alacritty.org/): I'm not geeky enough to use tiling window manager. I need tabs and builtin layout spliting. - [Warp](https://www.warp.dev/): TOO fancy to use. The AI completion is great, but for now I'm using copilot-cli and BingAI to help me with that. Overall, Wezterm covers all my needs for a terminal emulator, like tabs/splitting panels. You can also write configuration in lua language, which means you can refactor your configs whatever you want. Wezterm recently added bunch of menu items(from NOTHING to SOME), which make it works better with Raycast's Menu Items command. You won't need to remember or customize your keyboard shortcuts anymore. I've used the nightly version of WezTerm in the past two years. The update only crash for one time, and was fixed in one day or two. The release note of WezTerm is always dedicated and clear, making me willing to enable new features to try. So here's my choice, WezTerm. ![](https://hackmd.io/_uploads/S1q1k-sW2.png "Menu Items Raycast Command. I bind it to Alt-M") ![](https://hackmd.io/_uploads/rkLV1WoZh.png "Wezterm without title bar. Vaniila feeling of tab style. Transparent background enabled.") ## Shell: Fish shell I use [fish shell](https://fishshell.com/) as my **primary** shell, and `fisher` as its plugin manager. What I mean by the word **primary**, is that I don't `chsh`(change shell) to fish. I keep the macOS default shell, `zsh`. Since fish shell was not POSIX compatible enough, sometimes when script doesn't run well, I need to run it with `zsh` or `bash` temporarily, but that's acceptable for me. Fish shell already is a nice looking and usable shell out of the box. If you want more, it's time for the plugin manager. Oh-my-fish(`omf`) and fisher are the main players in the ecosystem. I don't remember why I chose fisher over omf, maybe just because a random guy's article. But looking at the latest release date of these two, omf is 2020 and fisher is August 2022. I think it's the reason for now. Or somebody can tell me there's a new alternative out there? Fish shell also changed a lot these years, some folks even started to rewrite it in Rust. ## Prompt customization: [oh-my-posh](https://ohmyposh.dev/) Let's move on to the **prompt customization**. People made shell specific customization, like [powerline](https://github.com/powerline/powerline), [powerlevel10k](https://github.com/romkatv/powerlevel10k), and all the great zsh themes. People even made powerline fonts(and Nerd fonts) to make it fancier for displaying rich git or package manager states. But sometimes shell specific customization get slow easily, thanks to the limitation of expressiveness of those crappy scripting languages(ignites the fires 🤘). So that's one reason why shell agnostic and static languages built prompt customizations become quite popular these days. Tools like starship, oh-my-posh came into places. And of course, they are built for speed. [starship](https://starship.rs/) is written Rust, and [oh-my-posh](https://ohmyposh.dev/) is written in Go. These two are really great replacements for your old unmaintained shell themes. No matter you use bash/zsh/fish/powershell, you can apply your awesome theme. And the reason why I choose oh-my-posh over starship? The config file format in starship is TOML, whereas oh-my-posh is in JSON. At the time I discovered oh-my-posh new rewrite(Yeah there's a story, you can find it on the GitHub repo), oh-my-posh comes with JSON schema. With the autocompletions and type checking support editor like VSCode, you can easily modify and develop your own oh-my-posh theme without reading doc and fixing errors back and forth. Developer experience(DX) REALLY matters for such developer tools. ![](https://hackmd.io/_uploads/rJp9eboWn.png "Yes, you can edit the config with auto completion") ![](https://hackmd.io/_uploads/rk8Cx-jW2.png "Here are so many themes!") ## Code editor: NeoVim ![](https://hackmd.io/_uploads/Hkot--ob2.png "WezTerm + NeoVim + Jetbrains Mono font setup") I've used VSCode as my primary editor since 2016. One year after it came out publicly. Why 2016? After VSCode got 1.0, the team started working on some basic editor features, like tabs, extensions, and integrated terminal. You can find these updates under [vsocde-docs/release-notes](https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/vApril.md) directory. I still remember during those months, I was excited enough to refresh the iteration plan doc every couple of days, go through newly created or merged pull requests to see what new features is added. The amount of new features and bug fixes VSCode introduced every month is so unbelievable. And it always keep improving and evolving, from user interface to performance. And since the extension marketplace is introduced, thanks to the vibrant JavaScript ecosystem and community, every new extension excites me. I even wrote a crawler to see when will the amount of VSCode extensions surpass Atom and SublimeText. If VSCode is so great, why would me switch to NeoVim? The biggest value VSCode it brings is **the abstraction of an IDE**, Language Server Protocol(LSP). While sometimes not being that performant, it surely help editor developers get feature rich quicker. I use Vim-inspired keybindings in every editor I've used. In VSCode, I even use the [NeoVim extension](https://marketplace.visualstudio.com/items?itemName=asvetliakov.vscode-neovim) to have a better performance Vim experience. NeoVim got official LSP support recently, and the Lua-based configuration looks great. So I think now is the time to go back to the origin. (Okay don't argue that NeoVim is not the origin but Vim is, why not stay using `vi` or `ed`? 😑) You can find my NeoVim config on my GitHub repo. I use [AstroNvim](https://astronvim.com/) as base config. My friend recommended it to me just two weeks ago. It hugely cut off my setup time, though I still spent a lot of time reading various documentations. Oh BTW, GitHub Copilot also works on NeoVim! I'll keep using NeoVim until I get the access of GitHub Copilot X on VSCode. 😂 ![](https://hackmd.io/_uploads/B1KxfWsZh.png "A Nice startup screen") ## Bonus: JavaScript toolchain management Let's finish this in one paragraph. TL;DR: I use [`volta`](https://volta.sh/) and [`fnm`](https://github.com/Schniz/fnm) at the same time. volta is for global Node.js toolchains, like pnpm, yarn, pm2 and other cool npm distributed CLIs. fnm is for project-specific Node.js version management, since it can be a in-place replacement for nvm, and it's faster.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully