So make sure to install the XCode CLI tools by running the following command. XCode Developer CLI tools are used by Powerline and other apps that manipulate core OSX features. $ sudo easy_install pip 2.3 Install XCode Developer CLI tools Install pip by running the following command
If it’s not 2.7, install Homebrew that allows us to install various software from the CLI, by running: /usr/bin/ruby -e "$(curl -fsSL )".Ensure Python’s version is 2.7.x by typing python -V in the Terminal. MacOS comes with Python installed already.2.1 Install Pythonīecause Powerline is a Python app, we need to have Python and that too a proper version of Python. It makes the Terminal prompt look like below. Powerline is a Python app and is a status line plugin for vim, and provides status lines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile. Open Terminal > Preferences > Text and select the “Solarized Dark …” theme and click on “Default”.įrom now on, your Terminal should like below.
At this point, you have the Theme installed into your Terminal.Note: If you get a warning that this is from an unidentified developer, Right-click on the file and select “Open with” > Terminal option. Double click “Solarized Dark ansi.terminal”file - This is the specific Theme file for Terminal.app.
This folder contains Theme for the terminal. Open the osx-terminal.app-colors-solarized folder.Scroll down and download the Theme (solarized.zip).right-click on the *.terminal file > “open with" > Terminal Simply open the *.terminal file to install it, i.e. Note: You can download various Themes (.terminal files) from this git repo. In this blog, I’ll add Solarized-Dark theme to our Terminal. Let’s download a Theme and add it to the Terminal. Terminal doesn’t provide all the cool and fancy themes that you see other developers use. The first obvious step is to enhance the Theme. Let’s go ahead and add Themes, fonts, and so on. OK, by default, when you have a new mac, your Terminal.app will look something like below. My Versions: Mac High Sierra git version 2.14.3 (Apple Git-98) Python 2.7.10 I’m not using ZSH or Hyper in this blog - I plan to write different blogs for them.ģ. This is for MacOS and for regular bash in the Terminal.app. Follow the steps carefully as any mistake will cause a lot of headaches.Ģ. So I thought I'd blog about it - hopefully it'll help you. It turns out, if you are using Mac, you’ll need to jump through a lot of hoops to get this working as many instructions are for linux, or are out of date. So this step becomes even more necessary as teams grow in size.In this blog I’ll go over the steps to add Themes, Powerline, fonts, and powerline-gitstatus to make your regular Bash Terminal look beautiful and useful as shown in the picture above. In big teams, the remote branch gets updated quite often causing your local branch to lag behind. This helps to avoid any conflicts when making a pull request.
Before creating a commit, it is customary to update your local branch with remote base branch.
When that happens, it is a good idea to commit the changes and push the code to your remote branch. During development, you often reach a stage that you would like to remember. Let us apply that to git actions and take an example of git refresh. While others might call it laziness, the aim is to reduce the effort involved in doing mundane tasks. IntroductionĪs engineers, we have an inbuilt desire to simplify and automate tasks. There you can find many ready-to-use custom git commands like git refresh and git switch. At the end of the post, there is a link to a GitHub repository. You'll be able to then club many git commands as one. In this post, I will show you how you can write your own custom git commands, in two simple steps. Can you think of any actions that you perform using git many times a day? For example, I update my local code with remote master many times a day. Do you use git version control? If you are in Software Development, I'm sure you have used it at some point.