Compare commits
No commits in common. "16e6c27b0fccc2e303dbe22b455ca80f1c4c47ae" and "9ca4152573155b490a0fd8a66ce68a555634f67c" have entirely different histories.
16e6c27b0f
...
9ca4152573
@ -1,5 +1,6 @@
|
|||||||
tap 'caskroom/cask'
|
tap 'caskroom/cask'
|
||||||
tap 'caskroom/fonts'
|
tap 'caskroom/fonts'
|
||||||
|
tap 'caskroom/versions'
|
||||||
|
|
||||||
brew 'asdf'
|
brew 'asdf'
|
||||||
brew 'cmake'
|
brew 'cmake'
|
||||||
@ -7,21 +8,12 @@ brew 'git-lfs'
|
|||||||
brew 'git'
|
brew 'git'
|
||||||
brew 'gnupg'
|
brew 'gnupg'
|
||||||
brew 'pass'
|
brew 'pass'
|
||||||
brew 'pinentry-mac'
|
|
||||||
brew 'tmux'
|
brew 'tmux'
|
||||||
|
brwe 'jq'
|
||||||
|
|
||||||
cask 'font-anonymous-pro'
|
cask 'font-anonymous-pro'
|
||||||
cask 'font-fira-code'
|
cask 'font-fira-code'
|
||||||
|
|
||||||
cask 'qlcolorcode'
|
|
||||||
cask 'qlcommonmark'
|
|
||||||
cask 'qlmarkdown'
|
|
||||||
cask 'qlstephen'
|
|
||||||
cask 'quicklook-csv'
|
|
||||||
cask 'quicklook-json'
|
|
||||||
cask 'suspicious-package'
|
|
||||||
|
|
||||||
cask 'alfred'
|
|
||||||
cask 'audiobookbinder'
|
cask 'audiobookbinder'
|
||||||
cask 'bitbar'
|
cask 'bitbar'
|
||||||
cask 'caffeine'
|
cask 'caffeine'
|
||||||
@ -44,3 +36,5 @@ cask 'transmission'
|
|||||||
cask 'virtualbox'
|
cask 'virtualbox'
|
||||||
cask 'visual-studio-code'
|
cask 'visual-studio-code'
|
||||||
cask 'wireshark'
|
cask 'wireshark'
|
||||||
|
|
||||||
|
cask 'homebrew/cask-versions/alfred2'
|
||||||
|
@ -158,6 +158,11 @@ set-option -g window-status-format '#[fg=colour244,bg=colour234]#{window_index}#
|
|||||||
# spaces between instances of window-status-format.
|
# spaces between instances of window-status-format.
|
||||||
set-option -g status-bg colour234
|
set-option -g status-bg colour234
|
||||||
|
|
||||||
|
# Inhibit the default styling for windows with unseen activity, which
|
||||||
|
# looks blatantly incorrect with the "powerline" theme we are trying to
|
||||||
|
# emulate.
|
||||||
|
set-window-option -g window-status-activity-attr none
|
||||||
|
|
||||||
# Update the status bar every second, instead of the default 15(!)
|
# Update the status bar every second, instead of the default 15(!)
|
||||||
# seconds. It doesn't look like it's possible to update more than
|
# seconds. It doesn't look like it's possible to update more than
|
||||||
# once per second, unfortunately.
|
# once per second, unfortunately.
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
### PROCESS
|
|
||||||
# mnemonic: [K]ill [P]rocess
|
|
||||||
# show output of "ps -ef", use [tab] to select one or multiple entries
|
|
||||||
# press [enter] to kill selected processes.
|
|
||||||
# press [escape] to exit.
|
|
||||||
|
|
||||||
pid=$(ps -ef | sed 1d | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[kill:process]'" | awk '{print $2}')
|
|
||||||
|
|
||||||
if [ "x$pid" != "x" ]
|
|
||||||
then
|
|
||||||
echo $pid | xargs kill -${1:-9}
|
|
||||||
fi
|
|
@ -1,18 +0,0 @@
|
|||||||
### ASDF
|
|
||||||
# uninstall multiple languages at once, async
|
|
||||||
# mnemonic [V]ersion [M]anager [C]lean
|
|
||||||
|
|
||||||
lang=${1}
|
|
||||||
|
|
||||||
if [[ -z $lang ]]; then
|
|
||||||
lang=$(asdf plugin-list | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[asdf:clean]'")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $lang ]]; then
|
|
||||||
for lng in $(echo $lang); do
|
|
||||||
for version in $(asdf list $lng | sort -nrk1,1 | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[asdf:${lng}:clean]'")
|
|
||||||
do asdf uninstall $lng $version
|
|
||||||
done
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
### ASDF
|
|
||||||
# install multiple languages at once, async
|
|
||||||
# mnemonic [V]ersion [M]anager [I]nstall
|
|
||||||
|
|
||||||
lang=${1}
|
|
||||||
asdf plugin-list-all &>/dev/null 2>&1
|
|
||||||
|
|
||||||
if [[ -z $lang ]]; then
|
|
||||||
lang=$(asdf plugin-list-all | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[asdf:install]'")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $lang ]]; then
|
|
||||||
for lng in $(echo $lang); do
|
|
||||||
if [[ -z $(asdf plugin-list | rg $lng) ]]; then
|
|
||||||
asdf plugin-add $lng
|
|
||||||
else
|
|
||||||
asdf plugin-update $lng
|
|
||||||
fi
|
|
||||||
|
|
||||||
for version in $(asdf list-all $lng | sort -nrk1,1 | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[asdf:${lng}:install]'")
|
|
||||||
do asdf install $lng $version
|
|
||||||
done
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
@ -1,7 +1,2 @@
|
|||||||
export LC_ALL=en_US.UTF-8
|
export LC_ALL=en_US.UTF-8
|
||||||
|
|
||||||
export ASDF_DATA_DIR=~/.asdf-data
|
export ASDF_DATA_DIR=~/.asdf-data
|
||||||
|
|
||||||
export FZF_DEFAULT_OPTS="--height=50% --min-height=15 --reverse"
|
|
||||||
export FZF_DEFAULT_COMMAND='rg --files --no-ignore-vcs --hidden'
|
|
||||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
|
||||||
|
34
home/.zshrc
34
home/.zshrc
@ -2,19 +2,17 @@
|
|||||||
|
|
||||||
if [[ ! -d ~/.zplug ]]; then
|
if [[ ! -d ~/.zplug ]]; then
|
||||||
git clone https://github.com/zplug/zplug ~/.zplug
|
git clone https://github.com/zplug/zplug ~/.zplug
|
||||||
source ~/.zplug/init.zsh && zplug update
|
source ~/.zplug/init.zsh && zplug update --self
|
||||||
else
|
|
||||||
source ~/.zplug/init.zsh
|
|
||||||
fi
|
fi
|
||||||
|
source ~/.zplug/init.zsh
|
||||||
|
|
||||||
zplug "zplug/zplug", hook-build:'zplug --self-manage'
|
zplug "zplug/zplug", hook-build:'zplug --self-manage'
|
||||||
|
|
||||||
zplug "wagoodman/dive", from:gh-r, as:command, rename-to:dive
|
|
||||||
zplug "stedolan/jq", from:gh-r, as:command, rename-to:jq
|
|
||||||
zplug "sharkdp/bat", from:gh-r, as:command, rename-to:bat
|
|
||||||
zplug "junegunn/fzf-bin", from:gh-r, as:command, rename-to:fzf
|
zplug "junegunn/fzf-bin", from:gh-r, as:command, rename-to:fzf
|
||||||
zplug "genuinetools/reg", from:gh-r, as:command, rename-to:reg
|
zplug "stedolan/jq", from:gh-r, as:command, rename-to:jq
|
||||||
zplug "BurntSushi/ripgrep", from:gh-r, as:command, rename-to:rg
|
zplug "akavel/up", from:gh-r, as:command, rename-to:up
|
||||||
|
zplug "sharkdp/bat", from:gh-r, as:command, rename-to:bat
|
||||||
|
zplug "wagoodman/dive", from:gh-r, as:command, rename-to:dive
|
||||||
|
|
||||||
zplug "b4b4r07/enhancd", use:init.sh
|
zplug "b4b4r07/enhancd", use:init.sh
|
||||||
if zplug check "b4b4r07/enhancd"; then
|
if zplug check "b4b4r07/enhancd"; then
|
||||||
@ -22,29 +20,27 @@ if zplug check "b4b4r07/enhancd"; then
|
|||||||
export ENHANCD_DOT_SHOW_FULLPATH=1
|
export ENHANCD_DOT_SHOW_FULLPATH=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zplug "lib/termsupport", from:oh-my-zsh
|
|
||||||
zplug "lib/key-bindings", from:oh-my-zsh
|
|
||||||
zplug "lib/history", from:oh-my-zsh
|
|
||||||
zplug "lib/grep", from:oh-my-zsh
|
|
||||||
zplug "lib/directories", from:oh-my-zsh
|
|
||||||
zplug "lib/completion", from:oh-my-zsh
|
zplug "lib/completion", from:oh-my-zsh
|
||||||
|
zplug "lib/directories", from:oh-my-zsh
|
||||||
|
zplug "lib/grep", from:oh-my-zsh
|
||||||
|
zplug "lib/history", from:oh-my-zsh
|
||||||
|
zplug "lib/key-bindings", from:oh-my-zsh
|
||||||
|
zplug "lib/termsupport", from:oh-my-zsh
|
||||||
|
|
||||||
zplug "plugins/git", from:oh-my-zsh
|
|
||||||
zplug "plugins/docker", from:oh-my-zsh
|
|
||||||
zplug "plugins/bundler", from:oh-my-zsh
|
|
||||||
zplug "plugins/asdf", from:oh-my-zsh
|
zplug "plugins/asdf", from:oh-my-zsh
|
||||||
|
zplug "plugins/bundler", from:oh-my-zsh
|
||||||
|
zplug "plugins/docker", from:oh-my-zsh
|
||||||
|
zplug "plugins/git", from:oh-my-zsh
|
||||||
|
|
||||||
zplug "zsh-users/zsh-completions"
|
zplug "zsh-users/zsh-completions"
|
||||||
zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
||||||
|
|
||||||
zplug "~/.zsh/cmd", from:local, use:'(*).sh', as:command, rename-to:'$1'
|
|
||||||
zplug "~/.zsh/themes", from:local, use:cheetah.zsh-theme, as:theme
|
|
||||||
|
|
||||||
if [[ $OSTYPE == *darwin* ]]; then
|
if [[ $OSTYPE == *darwin* ]]; then
|
||||||
zplug "plugins/osx", from:oh-my-zsh
|
zplug "plugins/osx", from:oh-my-zsh
|
||||||
zplug "plugins/pass", from:oh-my-zsh
|
zplug "plugins/pass", from:oh-my-zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
zplug "~/.zsh/themes", from:local, use:cheetah.zsh-theme, as:theme
|
||||||
[ -s "$HOME/.zsh.local" ] && source $HOME/.zsh.local
|
[ -s "$HOME/.zsh.local" ] && source $HOME/.zsh.local
|
||||||
|
|
||||||
zplug check || zplug install
|
zplug check || zplug install
|
||||||
|
Loading…
Reference in New Issue
Block a user