Skip to content

Instantly share code, notes, and snippets.

@romenigld romenigld/powerlevel9k
Last active Jan 3, 2019

Embed
What would you like to do?
POWERLEVEL9K_MODE='nerdfont-complete'
source ~/powerlevel9k/powerlevel9k.zsh-theme
# POWERLEVEL9K_CUSTOM_WIFI_SIGNAL="zsh_wifi_signal"
# POWERLEVEL9K_CUSTOM_WIFI_SIGNAL_BACKGROUND="blue"
# POWERLEVEL9K_CUSTOM_WIFI_SIGNAL_FOREGROUND="yellow"
#
# zsh_wifi_signal(){
# local output=$(/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I)
# local airport=$(echo $output | grep 'AirPort' | awk -F': ' '{print $2}')
#
# if [ "$airport" = "Off" ]; then
# local color='%F{yellow}'
# echo -n "%{$color%}Wifi Off"
# else
# local ssid=$(echo $output | grep ' SSID' | awk -F': ' '{print $2}')
# local speed=$(echo $output | grep 'lastTxRate' | awk -F': ' '{print $2}')
# local color='%F{yellow}'
#
# [[ $speed -gt 100 ]] && color='%F{green}'
# [[ $speed -lt 50 ]] && color='%F{red}'
#
# echo -n "%{$color%}$ssid $speed Mb/s%{%f%}" # removed char not in my PowerLine font
# fi
# }
POWERLEVEL9K_CUSTOM_ELIXIR="echo -n '💧' Elixir"
POWERLEVEL9K_CUSTOM_ELIXIR_FOREGROUND="black"
POWERLEVEL9K_CUSTOM_ELIXIR_BACKGROUND="magenta"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
os_icon
ssh
dir
vcs
newline
status
)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
custom_elixir
disk_usage
ram
# custom_wifi_signal
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.