Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$HOME/Library/flutter/bin
. "$HOME/.cargo/env"
96 changes: 95 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ zplugin light zdharma/fast-syntax-highlighting
alias ls='ls -FG'
alias la='ls -aFG'
alias ll='ls -alFG'
alias python="python3"
alias pip="pip3"
chpwd() { ls }

# Setup fzf
# ---------
if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then
export PATH="${PATH:+${PATH}:}/usr/local/opt/fzf/bin"
export PATH="$PATH:/usr/local/opt/fzf/bin"
fi

# Auto-completion
Expand All @@ -66,8 +68,100 @@ export FZF_TMUX_HEIGHT='60%'
export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden:wrap --bind '?:toggle-preview'"

alias gl='cd $(ghq root)/$(ghq list | fzf)'
function _ghq_list_jump() {
gl
}
zle -N _ghq_list_jump
bindkey '^G' _ghq_list_jump

eval "$(rbenv init -)"
eval "$(jenv init -)"

# added by travis gem
[ -f $HOME/.travis/travis.sh ] && source $HOME/.travis/travis.sh

# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/shota/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/shota/google-cloud-sdk/path.zsh.inc'; fi

# The next line enables shell command completion for gcloud.
if [ -f '/Users/shota/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/shota/google-cloud-sdk/completion.zsh.inc'; fi

# Python
export PATH="$PATH:/Users/shota/Library/Python/3.9/bin"

eval "$(direnv hook zsh)"
eval "$(nodenv init -)"
###-begin-npm-completion-###
#
# npm command completion script
#
# Installation: npm completion >> ~/.bashrc (or ~/.zshrc)
# Or, maybe: npm completion > /usr/local/etc/bash_completion.d/npm
#

if type complete &>/dev/null; then
_npm_completion () {
local words cword
if type _get_comp_words_by_ref &>/dev/null; then
_get_comp_words_by_ref -n = -n @ -n : -w words -i cword
else
cword="$COMP_CWORD"
words=("${COMP_WORDS[@]}")
fi

local si="$IFS"
if ! IFS=$'\n' COMPREPLY=($(COMP_CWORD="$cword" \
COMP_LINE="$COMP_LINE" \
COMP_POINT="$COMP_POINT" \
npm completion -- "${words[@]}" \
2>/dev/null)); then
local ret=$?
IFS="$si"
return $ret
fi
IFS="$si"
if type __ltrim_colon_completions &>/dev/null; then
__ltrim_colon_completions "${words[cword]}"
fi
}
complete -o default -F _npm_completion npm
elif type compdef &>/dev/null; then
_npm_completion() {
local si=$IFS
compadd -- $(COMP_CWORD=$((CURRENT-1)) \
COMP_LINE=$BUFFER \
COMP_POINT=0 \
npm completion -- "${words[@]}" \
2>/dev/null)
IFS=$si
}
compdef _npm_completion npm
elif type compctl &>/dev/null; then
_npm_completion () {
local cword line point words si
read -Ac words
read -cn cword
let cword-=1
read -l line
read -ln point
si="$IFS"
if ! IFS=$'\n' reply=($(COMP_CWORD="$cword" \
COMP_LINE="$line" \
COMP_POINT="$point" \
npm completion -- "${words[@]}" \
2>/dev/null)); then

local ret=$?
IFS="$si"
return $ret
fi
IFS="$si"
}
compctl -K _npm_completion npm
fi
###-end-npm-completion-###

. /usr/local/opt/asdf/libexec/asdf.sh
PATH="/usr/local/opt/gawk/libexec/gnubin:$PATH"

export PATH="/usr/local/sbin:$PATH"
26 changes: 17 additions & 9 deletions etc/iterm2/com.googlecode.iterm2.plist
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
<key>NSFontPanelAttributes</key>
<string>1, 0</string>
<key>NSNavLastRootDirectory</key>
<string>~/dotfiles/etc/iterm2</string>
<string>~/dev/github.com/Arc0re/Iceberg-iTerm2</string>
<key>NSNavPanelExpandedSizeForOpenMode</key>
<string>{712, 448}</string>
<key>NSQuotedKeystrokeBinding</key>
Expand Down Expand Up @@ -270,18 +270,20 @@
<true/>
<key>NSWindow Frame NSFontPanel</key>
<string>1311 113 445 77 0 0 1920 1177 </string>
<key>NSWindow Frame SUStatusFrame</key>
<string>760 808 400 129 0 0 1920 1200 </string>
<key>NSWindow Frame SharedPreferences</key>
<string>857 677 814 486 0 0 1920 1177 </string>
<string>857 597 918 566 0 0 1920 1200 </string>
<key>NSWindow Frame iTerm Window 0</key>
<string>169 574 650 469 0 0 1920 1177 </string>
<string>285 708 650 469 0 0 1920 1177 </string>
<key>NSWindow Frame iTerm Window 1</key>
<string>516 423 650 469 0 0 1920 1177 </string>
<string>0 697 650 469 0 0 1920 1177 </string>
<key>NSWindow Frame iTerm Window 2</key>
<string>268 109 650 469 0 0 1920 1177 </string>
<string>992 226 866 826 0 0 1920 1177 </string>
<key>NSWindow Frame iTerm Window 3</key>
<string>289 86 650 469 0 0 1920 1177 </string>
<string>0 0 2546 1506 0 0 1920 1177 </string>
<key>NSWindow Frame iTerm Window 4</key>
<string>310 744 650 469 0 0 1920 1177 </string>
<string>661 1411 650 469 0 0 1920 1177 </string>
<key>NSWindow Frame iTerm Window 5</key>
<string>331 721 650 469 0 0 1920 1177 </string>
<key>NSWindow Frame iTerm Window 6</key>
Expand Down Expand Up @@ -2252,6 +2254,8 @@
</dict>
<key>NoSyncTimeOfFirstLaunchOfVersionWithTip</key>
<real>567440949.99699998</real>
<key>PMPrintingExpandedStateForPrint2</key>
<false/>
<key>PointerActions</key>
<dict>
<key>Button,1,1,,</key>
Expand Down Expand Up @@ -2286,7 +2290,9 @@
</dict>
</dict>
<key>PrefsCustomFolder</key>
<string>/Users/shota/dotfiles/etc/iterm2</string>
<string>~/dotfiles/etc/iterm2</string>
<key>Print In Black And White</key>
<true/>
<key>SUEnableAutomaticChecks</key>
<true/>
<key>SUFeedAlternateAppNameKey</key>
Expand All @@ -2296,13 +2302,15 @@
<key>SUHasLaunchedBefore</key>
<true/>
<key>SULastCheckTime</key>
<date>2019-08-11T17:05:18Z</date>
<date>2021-09-04T09:35:52Z</date>
<key>SUSendProfileInfo</key>
<false/>
<key>TabStyleWithAutomaticOption</key>
<integer>5</integer>
<key>WordCharacters</key>
<string>/-+\~_.</string>
<key>findMode_iTerm</key>
<integer>0</integer>
<key>iTerm Version</key>
<string>3.3.20181231-nightly</string>
</dict>
Expand Down