config updates
This commit is contained in:
parent
34b98696a1
commit
e948c6648b
11
bin/vim
11
bin/vim
@ -1,2 +1,11 @@
|
||||
#!/bin/sh
|
||||
exec /usr/local/bin/vim -p "$@"
|
||||
#####################################################################
|
||||
VIM_ARGS=(-p)
|
||||
VIM=/usr/bin/vim
|
||||
#####################################################################
|
||||
|
||||
SOURCE_BUILD=/usr/local/bin/vim
|
||||
[ -f $SOURCE_BUILD ] && VIM=$SOURCE_BUILD
|
||||
|
||||
#####################################################################
|
||||
exec $(printf "%q " $VIM ${VIM_ARGS[@]} $@)
|
||||
|
@ -1,5 +1,10 @@
|
||||
# don't use escape key
|
||||
set -sg escape-time 0
|
||||
|
||||
# don't use 'repeat" keys
|
||||
# (causes delay annoyances with '~/.wryn/scwrypts/ssh/omni/tmux.conf')
|
||||
set -sg repeat-time 0
|
||||
|
||||
set-option -g default-shell /bin/zsh
|
||||
|
||||
# quick reload
|
||||
|
@ -112,3 +112,4 @@ Kat
|
||||
submodule
|
||||
submodules
|
||||
CloudFlare
|
||||
Cloudflare
|
||||
|
Binary file not shown.
25
zsh/alias
25
zsh/alias
@ -12,7 +12,30 @@ alias restart='clear; source ~/.zshrc'
|
||||
|
||||
alias fix='vim $(git diff --name-only | uniq) -p'
|
||||
|
||||
alias w='watch -tn1 '
|
||||
#####################################################################
|
||||
|
||||
w() { # fancy(?) version of "alias w='watch -tcn1 '"
|
||||
local WATCH_ARGS=()
|
||||
|
||||
WATCH_ARGS+=(--no-title)
|
||||
WATCH_ARGS+=(--color)
|
||||
WATCH_ARGS+=(--interval 1)
|
||||
|
||||
# don't add delay if command is available to /bin/sh
|
||||
/bin/sh -c "command -v $1" >/dev/null 2>&1 && {
|
||||
watch ${WATCH_ARGS[@]} $@
|
||||
return $?
|
||||
}
|
||||
|
||||
# quickly reduce first-order aliases
|
||||
alias $1 >/dev/null 2>&1 && {
|
||||
watch ${WATCH_ARGS[@]} $(which $1 | sed 's/.*aliased to //') ${@:2}
|
||||
return $?
|
||||
}
|
||||
|
||||
# import zshrc and inject current environment
|
||||
watch ${WATCH_ARGS[@]} "zsh -c 'source ~/.zshrc >/dev/null 2>&1; $(while read e; do printf 'export '; printf '%q ' "$e"; echo; done < <(env) | grep '='); echo \" $@\n---------------------------------------------------- \$(date +%H:%m:%S)\"; $@'"
|
||||
}
|
||||
|
||||
#####################################################################
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user