![]() While this cli is powerful, I mostly use it for gh browse to quickly open a browser window for the current repo. If you are still using hub I suggest switching to gh. Just using gd for git diff and gs for git status made me go a lot faster. I added shortcuts whenever I felt like I got a good handle of the current set of commands and I wanted to get faster at using them. The way I got used to Git was by printing out a cheat sheet and putting it on my desk. Honestly though, adding so many shortcuts in addition to existing commands can make version control even more confusing. If you autoformat your code with prettier or other formatting tools, whitespace changes clutter your diff views so I recommend always using -w to ignore whitespace. These shortcuts significantly reduce the amount of typing when working with Git. I created custom fish functions to map exa to ls in my. You could use fish aliases, but the automatic expansion for such commonly used commands is distracting. When I install new tools like exa, I tend to never use them and completely forget about them and it’s better to overwrite existing commands like ls. ![]() You can set this up in the iTerm2 preferences for your default profile. This makes it easier to quickly bring iTerm2 to the front or hide it. You can set up a global shortcut to quickly bring iTerm2 to the foreground or background. If you are automatically switching between light and dark mode on your system, check “Use different colors for light and dark mode” in the Colors section. If you like ligatures, you can enable them in the iTerm2 Text preferences: It’s great for consistency across your tools! Custom theme: In the “Colors” panel for your default profile, you can choose themes to match your text editor or make a custom theme.vcs: Print the current branch and status of a (git) repository as part of the prompt.z: Jump through favorite directories quickly.If you are using Homebrew you can just install most fonts with a -nerd-fonts suffix, for example brew install font-fira-code-nerd-font. These icons and glyphs can add better visual hints to your terminal output, such as file type icons when listing files in a directory. ” nerd fonts“: These fonts are variations of popular fonts combined with a large number of popular glyphs.exa: A modern replacement for ls with file type icons.To replicate this setup, run: brew install exa fish font-fira-code font-fira-code-nerd-font iterm2 and set /opt/homebrew/bin/fish as the “Command” in your default iTerm2 profile. You can try fish shell in your browser or check out this awesome list of fish plugins and protips. 2 It comes with sensible defaults and autocomplete right out of the box. This is why I’ve been using fish shell for the past several years. While Zsh has become the default on macOS, and my dotfiles have a reasonable Zsh setup, I’ve found that it’s a lot of work to get good defaults with Zsh. To get all the apps listed below immediately, run brew bundle within a clone of my dotfiles repo. If you want to follow along or just copy-paste my setup, check out my dotfiles repo cpojer/dotfiles. If you haven’t checked out the previous post on setting up a Mac, I suggest starting there. In this guide I’m recommending apps, tools and programs that reduce context switching, provide a consistent experience and make me go faster. While the perfect development environment doesn’t exist, you can spend time making your setup perfect for you. It’s a great way to take control of your Developer Experience and make everyday tasks more delightful. Small optimizations to your coding setup yield massive productivity gains over time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |