ayu-theme / ayu-colors

The ayu color scheme as a color palette

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZSH

sobrinho opened this issue · comments

Any chance of getting oh my zsh color scheme for these official AYU colors?

Screen Shot 2021-02-02 at 11 24 15

There is an iTerm scheme with AYU colors here: https://github.com/hwyncho/ayu-iTerm

Btw, is that TMUX? What plugin are you using for those ayu themed colors in the bottom?

I ended removing the ZSH theme and used my own PS1 and RSPS1:

# PS1
#
# $ [CURSOR]                   pwd example  scm master  ruby 3.0.0  node 14.15.4
export PS1=$'\n%(?.%F{green}.%F{red})\$ %f'
export RPS1="%F{240}pwd %F{255}%1~  %F{240}scm %F{255}\${vcs_info_msg_0_:-ッ}  %F{240}ruby %F{255}\$(asdf current ruby 2>/dev/null | awk '{ if (\$2) print \$2; else print \"ッ\" }')  %F{240}node %F{255}\$(asdf current nodejs | awk '{ print \$2 }')"

# vivid is a generator for the LS_COLORS environment variable that controls the colorized output of ls, tree, fd, bfs, dust and many other tools.
#
# See https://github.com/sharkdp/vivid
export LS_COLORS="$(vivid generate ayu)"

# Note that the BSD version of ls does not use LS_COLORS, but you can use the GNU version of ls instead:
alias ls="gls --color"

It looks much better now:

Screen Shot 2021-02-03 at 15 19 58

For tmux, I'm using a couple plugins and changed the statuses a bit:

# remap prefix from 'C-b' to 'C-a'
bind prefix C-a

# split panes using | and -
bind | split-window -h
bind - split-window -v

unbind '"'
unbind %

# reorder windows using < and >
bind < swap-window -t -1
bind > swap-window -t +1

# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# Enable mouse mode (tmux 2.1 and above)
set -g mouse on

# TPM
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'leighmcculloch/tmux-colours-superhero'

run '~/.tmux/plugins/tpm/tpm'

#
# Plugins overrides
#

# tmux-colours-superhero
#
#   1. Remove hostname from status-right
#   2. Move pwd from window-status to status-right
set -g status-right ' #{?window_zoomed_flag,#[fg=colour178]ZOOMED #[fg=colour238]• ,}#[fg=colour178]#(pwd="#{pane_current_path}"; echo ${pwd####*/}) #[fg=colour238]• #[fg=colour178]%a%e %b  #[fg=colour178]%H:%M '
set-window-option -g window-status-format '#[fg=colour214,bg=colour235] #I #[fg=white,bg=colour236] #W #[default]'
set-window-option -g window-status-current-format '#[fg=black,bg=colour214] #I #[fg=brightwhite,bg=colour238] #W #[default]'