Skip to content

Instantly share code, notes, and snippets.

@BoyanXu
Forked from cyruzin/bash_powerline.log
Created March 4, 2022 13:17
Show Gist options
  • Save BoyanXu/f22808d47f42cef0d25f3ee5d3c51dc1 to your computer and use it in GitHub Desktop.
Save BoyanXu/f22808d47f42cef0d25f3ee5d3c51dc1 to your computer and use it in GitHub Desktop.
Install Powerline in Arch Linux
# Install powerline and powerline fonts.
sudo pacman -S powerline powerline-fonts
# Optional - Install powerline-fonts-git package from AUR to get the patched fonts.
# Remove the powerline-fonts first then:
sudo pacman -S powerline-fonts-git
# Add this to the end of the .bashrc file.
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/powerline/bindings/bash/powerline.sh
# Enable GIT branch.
# Create the powerline config file
mkdir -p ~/.config/powerline
# Execute this entire block on the terminal:
cat <<-'EOF' > ~/.config/powerline/config.json
{
"ext": {
"shell": {
"theme": "default_leftonly"
}
}
}
EOF
# Apply the changes restarting the daemon.
powerline-daemon --replace
# Customizations
Set font "Droid Sans Mono Dotted for Powerline" with size 10.
Set transparency to 10%.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment