Compare commits

...

4 Commits

Author SHA1 Message Date
Anton Zadvorny 16e6c27b0f Update zsh config and plugins 2019-07-23 18:54:46 +03:00
Anton Zadvorny 187bd24560 Update brewfile 2019-07-23 18:54:46 +03:00
Anton Zadvorny b2347795fb Add FZF default settings 2019-07-21 20:17:07 +03:00
Anton Zadvorny dd3daf33c5 Fix tmux config 2019-07-21 20:16:47 +03:00
8 changed files with 90 additions and 25 deletions

View File

@ -1,6 +1,5 @@
tap 'caskroom/cask'
tap 'caskroom/fonts'
tap 'caskroom/versions'
brew 'asdf'
brew 'cmake'
@ -8,12 +7,21 @@ brew 'git-lfs'
brew 'git'
brew 'gnupg'
brew 'pass'
brew 'pinentry-mac'
brew 'tmux'
brwe 'jq'
cask 'font-anonymous-pro'
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 'bitbar'
cask 'caffeine'
@ -36,5 +44,3 @@ cask 'transmission'
cask 'virtualbox'
cask 'visual-studio-code'
cask 'wireshark'
cask 'homebrew/cask-versions/alfred2'

View File

@ -158,11 +158,6 @@ set-option -g window-status-format '#[fg=colour244,bg=colour234]#{window_index}#
# spaces between instances of window-status-format.
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(!)
# seconds. It doesn't look like it's possible to update more than
# once per second, unfortunately.

0
home/.zsh/.linkdir Normal file
View File

12
home/.zsh/cmd/kp.sh Executable file
View File

@ -0,0 +1,12 @@
### 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

18
home/.zsh/cmd/vmc.sh Executable file
View File

@ -0,0 +1,18 @@
### 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

25
home/.zsh/cmd/vmi.sh Executable file
View File

@ -0,0 +1,25 @@
### 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

View File

@ -1,2 +1,7 @@
export LC_ALL=en_US.UTF-8
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"

View File

@ -2,17 +2,19 @@
if [[ ! -d ~/.zplug ]]; then
git clone https://github.com/zplug/zplug ~/.zplug
source ~/.zplug/init.zsh && zplug update --self
source ~/.zplug/init.zsh && zplug update
else
source ~/.zplug/init.zsh
fi
source ~/.zplug/init.zsh
zplug "zplug/zplug", hook-build:'zplug --self-manage'
zplug "junegunn/fzf-bin", from:gh-r, as:command, rename-to:fzf
zplug "stedolan/jq", from:gh-r, as:command, rename-to:jq
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 "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 "genuinetools/reg", from:gh-r, as:command, rename-to:reg
zplug "BurntSushi/ripgrep", from:gh-r, as:command, rename-to:rg
zplug "b4b4r07/enhancd", use:init.sh
if zplug check "b4b4r07/enhancd"; then
@ -20,27 +22,29 @@ if zplug check "b4b4r07/enhancd"; then
export ENHANCD_DOT_SHOW_FULLPATH=1
fi
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 "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 "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 "plugins/docker", from:oh-my-zsh
zplug "plugins/bundler", from:oh-my-zsh
zplug "plugins/asdf", from:oh-my-zsh
zplug "zsh-users/zsh-completions"
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
zplug "plugins/osx", from:oh-my-zsh
zplug "plugins/pass", from:oh-my-zsh
fi
zplug "~/.zsh/themes", from:local, use:cheetah.zsh-theme, as:theme
[ -s "$HOME/.zsh.local" ] && source $HOME/.zsh.local
zplug check || zplug install