[install] reloads and enables karabiner
This commit is contained in:
parent
544f6e69a5
commit
4c5e37e9e4
2 changed files with 22 additions and 10 deletions
21
install
21
install
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
DOTFILES=~/.dotfiles
|
||||
DOTFILES=$HOME/.dotfiles
|
||||
|
||||
rm -rf $DOTFILES
|
||||
mkdir $DOTFILES
|
||||
|
@ -36,14 +36,27 @@ rm -rf ~/.grcat
|
|||
ln -s $DOTFILES/vendor/nitso/colour-mysql-console/.grcat ~/.grcat
|
||||
|
||||
if [[ `uname` == 'Darwin' ]]; then
|
||||
rm -rf ~/Library/Application\ Support/Karabiner
|
||||
ln -s $DOTFILES/karabiner ~/Library/Application\ Support/Karabiner
|
||||
|
||||
# TODO: OS X
|
||||
# 1) Install homebrew
|
||||
# 2) Install docker
|
||||
# 3) Install ship from github repo (for any OS)
|
||||
# 4) Configure Terminal.app
|
||||
# 5) Install karabiner
|
||||
|
||||
rm -rf ~/Library/Application\ Support/Karabiner
|
||||
ln -s $DOTFILES/karabiner ~/Library/Application\ Support/Karabiner
|
||||
|
||||
/Applications/Karabiner.app/Contents/Library/bin/karabiner reloadxml
|
||||
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand
|
||||
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommandH
|
||||
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommandJ
|
||||
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommandK
|
||||
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommandL
|
||||
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand1
|
||||
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand2
|
||||
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand3
|
||||
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand4
|
||||
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand5
|
||||
|
||||
brew update
|
||||
brew upgrade
|
||||
|
|
11
zsh/zshrc
11
zsh/zshrc
|
@ -1,6 +1,5 @@
|
|||
DOTFILES_DIR=$HOME/.dotfiles
|
||||
DEFAULT_USER=josh
|
||||
ADOTDIR=$DOTFILES_DIR/vendor/zsh-users/antigen/
|
||||
DOTFILES=$HOME/.dotfiles
|
||||
ADOTDIR=$DOTFILES/vendor/zsh-users/antigen/
|
||||
GREP_EXCLUDE_DIR="{.git,.sass-cache,artwork,node_modules,vendor}"
|
||||
|
||||
export CLICOLOR=1
|
||||
|
@ -10,13 +9,13 @@ export TERM="xterm-256color"
|
|||
|
||||
bindkey -v
|
||||
|
||||
source $DOTFILES_DIR/vendor/zsh-users/antigen/antigen.zsh
|
||||
source $DOTFILES/vendor/zsh-users/antigen/antigen.zsh
|
||||
|
||||
antigen-use oh-my-zsh
|
||||
antigen-bundle git
|
||||
antigen-theme $DOTFILES_DIR/zsh joshtronic
|
||||
antigen-theme $DOTFILES/zsh joshtronic
|
||||
|
||||
OS_ZSHRC=$DOTFILES_DIR/zsh/`uname`.zshrc
|
||||
OS_ZSHRC=$DOTFILES/zsh/`uname`.zshrc
|
||||
if [ -e $OS_ZSHRC ]; then source $OS_ZSHRC; fi
|
||||
|
||||
antigen-bundle zsh-users/zsh-completions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue