Skip to content

Commit

Permalink
fix awesome fonts for powerlevel9k
Browse files Browse the repository at this point in the history
  • Loading branch information
atomantic committed May 24, 2016
1 parent 1a492fe commit ea1527f
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 41 deletions.
31 changes: 12 additions & 19 deletions .config/fontconfig/conf.d/10-symbols.conf
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<!--
When a glyph is missing in the current font freetype2 will look into
other installed fonts to see if it's going to find it, but which fonts?
and in which order?
The configuration below aim to declare an ordered list of fonts
to be looked into when a glyph is not found in a specic font
<alias>
<family>FONT_WITH_A_POSSIBLY_MISSING_GLYPH</family>
<prefer>
<family>FIRST_FONT_TO_LOOK_INTO</family>
<family>SECOND_FONT_TO_LOOK_INTO</family>
<family>...</family>
</prefer>
</alias>
-->

<fontconfig>
<alias>
<family>RobotoMonoForPowerline-Regular</family>
<family>Hack</family>
<prefer>
<family>PowerlineSymbols</family>
<family>Pomodoro</family>
<family>FontAwesome</family>
<family>Octicons</family>
<family>Icomoon</family>
</prefer>
</alias>
<alias>
<family>Inconsolata Awesome</family>
<prefer>
<family>Pomodoro</family>
<family>FontAwesome</family>
<family>Octicons</family>
<family>Icomoon</family>
<family>PowerlineSymbols</family>
</prefer>
</alias>
</fontconfig>
1 change: 1 addition & 0 deletions .shellvars
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ export GROOVY_HOME=/usr/local/opt/groovy/libexec
# Tool settings
#########################################################################
export FONTCONFIG_PATH=/opt/X11/lib/X11/fontconfig
export NVM_DIR=~/.nvm
18 changes: 6 additions & 12 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.dotfiles/oh-my-zsh

# Set name of the theme to load.
# Look in $ZSH/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
POWERLEVEL9K_MODE='awesome-patched'
export ZSH_THEME="powerlevel9k/powerlevel9k"
# https://github.com/bhilburn/powerlevel9k#customizing-prompt-segments
# https://github.com/bhilburn/powerlevel9k/wiki/Stylizing-Your-Prompt
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir nvm vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status history time)
POWERLEVEL9K_NVM_FOREGROUND='008'
POWERLEVEL9K_SHOW_CHANGESET=true
# POWERLEVEL9K_NVM_BACKGROUND='blue'
# colorcode test
# for code ({000..255}) print -P -- "$code: %F{$code}This is how your text would look like%f"
#export POWERLEVEL9K_MODE='awesome-fontconfig'
POWERLEVEL9K_NVM_FOREGROUND='008'
# POWERLEVEL9K_NVM_BACKGROUND='blue'
POWERLEVEL9K_SHOW_CHANGESET=true
#export ZSH_THEME="random"

# Set to this to use case-sensitive completion
Expand All @@ -27,16 +22,15 @@ export CASE_SENSITIVE="true"
# Uncomment following line if you want to disable colors in ls
# export DISABLE_LS_COLORS="true"

# Uncomment following line if you want to disable autosetting terminal title.
# export DISABLE_AUTO_TITLE="true"
# comment following line if you want to enable autosetting terminal title.
export DISABLE_AUTO_TITLE="true"

# Which plugins would you like to load? (plugins can be found in ~/.dotfiles/oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(colorize compleat dirpersist ssh-agent autojump git gulp history cp)

source $ZSH/oh-my-zsh.sh

export NVM_DIR=~/.nvm
source /usr/local/opt/nvm/nvm.sh

# Customize to your needs...
Expand Down
Binary file added fonts/awesome/Droid+Sans+Mono+Awesome.ttf
Binary file not shown.
Binary file added fonts/awesome/Inconsolata+Awesome.ttf
Binary file not shown.
Binary file not shown.
23 changes: 13 additions & 10 deletions osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -795,24 +795,26 @@ defaults write com.googlecode.iterm2 PromptOnQuit -bool false;ok
running "hide tab title bars"
defaults write com.googlecode.iterm2 HideTab -bool true;ok
running "set system-wide hotkey to show/hide iterm with ^\`"
defaults write com.googlecode.iterm2 Hotkey -bool true;
defaults write com.googlecode.iterm2 AnimateDimming -bool true;
defaults write com.googlecode.iterm2 Hotkey -bool true;ok
running "hide pane titles in split panes"
defaults write com.googlecode.iterm2 ShowPaneTitles -bool false;ok
running "animate split-terminal dimming"
defaults write com.googlecode.iterm2 AnimateDimming -bool true;ok
defaults write com.googlecode.iterm2 HotkeyChar -int 96;
defaults write com.googlecode.iterm2 HotkeyCode -int 50;
defaults write com.googlecode.iterm2 FocusFollowsMouse -int 1;
defaults write com.googlecode.iterm2 HotkeyModifiers -int 262401;
running "Make iTerm2 load new tabs in the same directory"
/usr/libexec/PlistBuddy -c "set \"New Bookmarks\":0:\"Custom Directory\" Recycle" /tmp/plist;ok
running "setting fonts"
defaults write com.googlecode.iterm2 "Normal Font" -string "Hack-Regular 12";
defaults write com.googlecode.iterm2 "Non Ascii Font" -string "RobotoMonoForPowerline-Regular 12";
defaults read com.googlecode.iterm2;
defaults write com.googlecode.iterm2 "Non Ascii Font" -string "DroidSansMonoAwesome 12";
ok
running "reading iterm settings"
defaults read -app iTerm;
#defaults write com.googlecode.iterm2 "PrefsCustomFolder" -string "/Users/$(whoami)/.dotfiles/iterm"
ok

# running "Make iTerm2 load new tabs in the same directory"
# defaults export com.googlecode.iterm2 /tmp/plist
# /usr/libexec/PlistBuddy -c "set \"New Bookmarks\":0:\"Custom Directory\" Recycle" /tmp/plist
# defaults import com.googlecode.iterm2 /tmp/plist;ok


###############################################################################
bot "Time Machine"
###############################################################################
Expand Down Expand Up @@ -900,6 +902,7 @@ defaults write com.irradiatedsoftware.SizeUp StartAtLogin -bool true;ok
running "Don’t show the preferences window on next start"
defaults write com.irradiatedsoftware.SizeUp ShowPrefsOnNextStart -bool false;ok

killall cfprefsd

###############################################################################
# Kill affected applications #
Expand Down

0 comments on commit ea1527f

Please sign in to comment.