This adds some nice colors and two commands (git lol & git lola) to view the log in a nicer way. Open ~/.gitconfig and add the following lines. Git config -global user.name "Jussi Kaijalainen" git config -global user.email "jussi(at)wingmen.fi" You can also configure it by the project by omitting the global switch. Note that the commands below set a global identity on your mac. Git requires your info, so it can add your info into the commits you create. Make sure you get git Setup git committer info git -exclude node_modules"Īlias preview="fzf -preview 'bat -color \"always\" )+abort'" # improve common commands by using modern versionsĪlias du="ncdu -color dark -rr -x -exclude. zshrc or similar to make it all work (NOTE: You should have fzf installed). brew install agīroot allows handy viewing of folders in the terminal. brew install tldrĪ better grep that understands. brew install ncduĪ better help by using tldr. brew install prettypingĪ nicer way to see disk usage by usingn ncdu. Replace ping with pretty ping - again looks prettier. Replace cat with bat, to make your cats look prettier. Nowadays there are better alternatives to many common Unix commands that we use daily. This really improves your life when looking at the history of commands you've used by doing all sorts of magical fuzzy matching. If you want to authenticate via your Apple Watch, you can do that too by following the instructions in the repository for this open source Apple Watch pam module: Install fzf for better command line history Change iTerm setting under Preferences > Advanced > Allow sessions to survive after logging out and back in to no.Open /etc/pam.d/sudo and add auth sufficient pam_tid.so to the top of the file.Have a long and complex admin password? Worry no more, you can use your fingerprint scanner aka. You can install some nice terminal nerd fonts using home brew like so: brew tap homebrew/cask-fonts Adding Oh My Zsh on top of ZSH is super.Īnd while upgrading the terminal experience, you should drop in these as well: You won't look back at the default mac terminal. Needed to install lots of the stuff in this guide.īelow you will find instructions on how to configure ZSH and a lot of nice terminal related goodies. Homebrew is the go-to Unix package manager for OS X. Then install the command line tools by copy-pasting the following into your terminal: xcode-select -install XCode installs some important extras on the first run, so if you forget to run it you'll be left scratching your head why things do not work. REMEMBER TO RUN Xcode and agree to the license agreement to finish installing it. Once the updates are in, proceed by heading to the App Store and installing the latest Xcode. Who knows what kind nasty security holes those updates are patching. It's likely that your "new" mac is a one or two updates behind and it's best to install all those first. Update, install Xcode and HomebrewĪfter the initial Apple setup wizard you should start by checking the app store for updates. The article is being updated to reflect the latest discoveries. Hopefully, you will find something new! Enjoy. It also contains some bonus tips/reminders on useful tricks and commands sprinkled in.Īlso, I am pretty damn sure the world needs one more "How I setup my Mac" -post, so here goes. This post is a messy, note-to-self kind of list of what needs to be done to get from a blank Mac to the happy place. It takes quite a few steps to get to a happy place where you are productive again. Setting up your mac for design & development is painful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |