1. 程式人生 > >How to Jazz Up Your Bash Terminal

How to Jazz Up Your Bash Terminal

2.1 Install Python

Because Powerline is a Python app, we need to have Python and that too a proper version of Python.

  • MacOS comes with Python installed already. Ensure Python’s version is 2.7.x by typing python -V in the Terminal.
  • 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 https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Run brew install python to install the latest Python via Homebrew

2.2 Install pip — A package manager for Python (similar to npm)

Install pip by running the following command

$ sudo easy_install pip

2.3 Install XCode Developer CLI tools

XCode Developer CLI tools are used by Powerline and other apps that manipulate core OSX features. So make sure to install the XCode CLI tools by running the following command.

$ xcode-select —-install

Note: The above command opens up Mac’s installer and installs the XCode Developer CLI tools. If it doesn’t work, try xcode-select -r to reset.

2.4 Install Powerline

Finally, install the Powerline (stable version) via pip by running the following command.

$ pip install --user powerline-status

If you want to install the latest development branch, then use:

$ pip install --user git+git://github.com/powerline/powerline  //dev

2.5 Add the Powerline daemon to bash

We now need to add the Powerline daemon to bash so that it can monitor the Terminal prompt and make changes.

2.5.1 Copy the Powerline’s installation location

You can figure out the location of Powerline by running the following: pip show powerline-status Copy the value from the Location field.

相關推薦

How to Jazz Up Your Bash Terminal

2.1 Install PythonBecause Powerline is a Python app, we need to have Python and that too a proper version of Python.MacOS comes with Python installed alrea

Fast, Flexible, Easy and Intuitive: How to Speed Up Your Pandas Projects

If you work with big data sets, you probably remember the “aha” moment along your Python journey when you discovered the Pandas library. Pandas is a gam

[Fastai] How to set up fastai library on windows 10? Windows 10如何安裝fastai庫

According to Jeremy’s post: (assume you have gpu with cuda, conda and git installed) clone the git repo git clone https://github.com/

Ask HN: How to not forget your own code?

I'll jump right in. I'm a developer with 5+ years' experience with programming. One of the biggest challenges I face is I forget my code very quickly. This

How to unit test your first Vue.js component

In Build Your First Vue.js Component we made a star rating component. We’ve covered many fundamental concepts to help you create more complex Vue.js compon

How to Completely Optimize Your Facebook Page

Facebook is the most popular social media platform used by businesses. Facebook Pages help your brand or business promote and share its value-add and to as

How to speak up and impact conversations as a junior designer

How to speak up and impact conversations as a junior designerA large part of my week is spent in meeting rooms, design critiques, and spontaneous discussio

Ethereum 69: how to set up a fully synced blockchain node in 10 mins

Wait for few hours until the blockchain is fully synced.The current block number as of 24th of September is: 3039786. On my AMD Ryzen 5 2600, 3.4Ghz, the s

Ask HN: How to come up with a monetizable side project idea?

I love building small tools which I myself face in my day to day life. Having been worked in different companies over the last 4 years, I feel I've acquire

How to Better Understand Your Machine Learning Data in Weka

Tweet Share Share Google Plus It is important to take your time to learn about your data when st

How to Set Up a Compliant Archive

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

How to set up a Continuous Integration and Delivery (CI/CD) Pipeline

In this project, you will learn how to set up a continuous integration and continuous delivery (CI/CD) pipeline on AWS. A pipeline helps you

How to set up a continuous deployment pipeline

In this step, you will revise the sample code and commit the change to your repository. CodePipeline will detect your updated sample code an

How to Set Up a Direct Connect Gateway

An AWS Direct Connect gateway is a grouping of virtual private gateways and private virtual interfaces that belong to the same AWS account.

How to map out your migration of Oracle PeopleSoft to AWS

Oracle PeopleSoft Enterprise is a widely used enterprise resource planning (ERP) application. Customers run production deployments of various Peop

How to set up live-migration environment for Openstack with devstack

1) Install OS    1.1) Install Ubuntu 12.04          [email protected]:~# cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04

How to set up "lldb_codesign" certificate!

system log creating mes iss sys for ase switch To use the in-tree debug server on macOS, lldb needs to be code signed. TheDebug, DebugCla

<轉>How to Encourage Your Child's Interest in Science and Tech

sim challenge table nic options https fun developed advice How to Encourage Your Child‘s Interest in Science and Tech This week’s Ask-A-D

How to choose your OS

嘗試 情況下 不必要 工具 情況 效率 linux系統 安裝 linux 我最開始使用電腦時用的是Windows系統。 後來聽說有一個叫作Linux的系統,是開源免費的,而且工作效率還高,所以對它很感興趣,以至於還有點反感Windows,為此還瘋狂的安裝各種Li