dynaimic solarized profiles for iTerm, solarized for mac ls
This commit is contained in:
9
.zshenv
9
.zshenv
@@ -8,6 +8,7 @@ alias oe='open /Applications/Emacs.app'
|
||||
alias config='/usr/bin/git --git-dir=$HOME/.cfg/.git/ --work-tree=$HOME'
|
||||
alias -g N="2>&1 "
|
||||
# export PATH=$HOME/.rd/bin
|
||||
#
|
||||
|
||||
|
||||
# for gems installed in my home direcotry
|
||||
@@ -37,7 +38,7 @@ function print_st() {
|
||||
}
|
||||
|
||||
function set_iterm_profile() {
|
||||
readonly profile=${1:?"The port must be specified."}
|
||||
readonly profile=${1:?"The profile must be specified."}
|
||||
print_osc
|
||||
printf "1337;SetProfile=$profile"
|
||||
print_st
|
||||
@@ -45,18 +46,18 @@ function set_iterm_profile() {
|
||||
|
||||
function set_tmux_profile() {
|
||||
if [[ -n $TMUX ]]; then
|
||||
profile=${1:?"The port must be specified."}
|
||||
profile=${1:?"The profile must be specified."}
|
||||
tmux source-file $HOME/.tmux/plugins/tmux-colors-solarized/tmuxcolors-${profile}.conf
|
||||
fi
|
||||
}
|
||||
|
||||
function set_dark() {
|
||||
set_iterm_profile 'Dark'
|
||||
set_iterm_profile 'Solarized Dark'
|
||||
set_tmux_profile 'dark'
|
||||
}
|
||||
|
||||
function set_light() {
|
||||
set_iterm_profile 'Light'
|
||||
set_iterm_profile 'Solarized Light'
|
||||
set_tmux_profile 'light'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user