Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export ZSH="/Users/ckey/.oh-my-zsh"
- plugins=(git osx)
- source $ZSH/oh-my-zsh.sh
- source ~/powerlevel10k/powerlevel10k.zsh-theme
- prompt_zsh_showStatus () {
- state=`osascript -e 'tell application "Spotify" to player state as string'`;
- if [ $state = "playing" ]; then
- artist=`osascript -e 'tell application "Spotify" to artist of current track as string'`;
- track=`osascript -e 'tell application "Spotify" to name of current track as string'`;
- echo -n " $artist - $track " ;
- fi
- }
- POWERLEVEL9K_CUSTOM_SPOTIFY="prompt_zsh_showStatus"
- POWERLEVEL9K_PROMPT_ON_NEWLINE=true
- POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
- POWERLEVEL9K_MODE='awesome-patched'
- POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
- POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle"
- POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator dir nvm vcs)
- POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status custom_spotify)
- POWERLEVEL9K_NVM_BACKGROUND='28'
- POWERLEVEL9K_NVM_FOREGROUND='15'
- POWERLEVEL9K_TIME_FORMAT="%D{%H:%M \uE868 %d.%m}"
- prompt_zsh_showStatus ()
- bindkey "^[[A" history-beginning-search-backward
- bindkey "^[[B" history-beginning-search-forward
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement