![]() For example, if you need to run multiple commands on remote hosts which take hours to complete, but need to drive home, your choices would be to add the "no-hup" option before the command and "&" to set the command in the background. The great thing about Tmux is the ability to keep a session running after you log out of the host or lose connection. If you're new to Tmux, this application allows you to create a session which holds multiple windows (workspaces) and panes (workspaces broke down into multiple windows). So a few years back I explored the idea of using Tmux. This gets confusing after ten or so tabs. But each new ssh session I need, I create a new tab. Seriously if you have a Mac, install Homebrew. Actually, the Nethack is running on my Mac thanks to Homebrew. All of this will be disconnected when I head for home. Oh, I also need to keep track of what's going on in tab 7, plus the other sessions. It’s completely up to you, but know that I’m a huge fan of Vim.As the screenshot shows, I need to improve my Nethack skills. bindkey -v export KEYTIMEOUT=1 Enables Vim bindings on Zsh.Niche, but may come in handy in the future. alias leg="arch -x86_64 Similar to the previous suggestion, this line allows you to run any command-line tools emulated by the Rosetta compatibility layer.Just use brewr in place of brew if you run to installation compatibility issues. alias brewr="arch -x86_64 /usr/local/bin/brew allows you to run your non-native version of homebrew without using the “Rosetta” terminal.Here are some more one-liner suggestions you should add to the end of this file to fine-tune your Zsh shell on macOS: powerlevel10k is an awesome-looking theme for Zsh which can actually make your shell faster!Īt this point, you may have already made multiple changes to your ~/.zshrc file to install plugins/themes.With this, you’ll be able to spot mistypes before running commands. zsh-syntax-highlighting brings basic bash script syntax coloring support to the Zsh terminal.zsh-autosuggestions is exactly what the name entails: it’s a powerful plugin that suggests commands as you type based on your history in the terminal.Read through their READMEs to see what each one does and investigate its installation instructions. Notable Zsh Plugins + Themesīelow are some all-time favorite plugins and themes to use for the Zsh shell. “ Oh My Zsh will not make you a 10x developer…but you may feel like one.” Oh My Zsh simplifies the process of getting plugins/themes a whole lot, allowing you to add and configure them easily in your ~/.zshrc file. Run the following command under iTerm, then go through any prompts: sh -c "$(curl -fsSL )" It would have been my preferred shell anyways, especially for its extensibility. Zsh is the default terminal shell that comes with macOS. ![]() ITerm2 + Zsh + powerlevel10k = Awesomeness There are no vague install scripts, just clear-cut steps to know exactly what you’re doing throughout the process. Split to numbered sections, with installation instructions for the dev tool up front and block quoted, the guide is set to have you up and running ASAP! Each section will also have a small description for those who are new to the macOS developer ecosystem. This article is a guide for properly setting up a development environment on macOS systems running the new M1 chip, based on my own experience. Regardless, I’ve managed to jump through numerous hoops to get my fresh M1 Mac prepped up for most types of development. What’s wrong with that? Virtually all software had previously been built only on the x86–64 architecture, meaning program compatibility is at the mercy of the developers or at Apple’s compatibility layer, Rosetta 2.Īs an avid programmer who relies on apps to make apps, this issue is exacerbated. (More urgently) The new M1 chip is ARM-based.With up to 3.5 times the CPU performance with only a quarter of power consumption compared to previous devices, Apple finally convinced me to commit the switch to macOS with their new MacBook Pro 13-inch. The M1 Apple product lineup is all the hype nowadays, and it’s well deserved.
0 Comments
Leave a Reply. |