Stop doing the silly local thing
This commit is contained in:
parent
485ea3247f
commit
eacbd4342f
3
bin/local/scwrypts
Executable file
3
bin/local/scwrypts
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
source $HOME/.config/wryn/env.zsh
|
||||||
|
"$DOTWRYN/zsh/plugins/scwrypts/scwrypts" $@
|
2
bin/local/vim
Executable file
2
bin/local/vim
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
exec /usr/bin/vim -p $@
|
@ -31,4 +31,6 @@ $DOTWRYN/config/tmux.conf tmux/tmux.conf
|
|||||||
$DOTWRYN/config/xcompose.conf X11/xcompose
|
$DOTWRYN/config/xcompose.conf X11/xcompose
|
||||||
$DOTWRYN/config/xconfig.conf X11/xconfig
|
$DOTWRYN/config/xconfig.conf X11/xconfig
|
||||||
$DOTWRYN/config/xinitrc X11/xinitrc
|
$DOTWRYN/config/xinitrc X11/xinitrc
|
||||||
|
$DOTWRYN/bin/local/scwrypts ../.local/bin/scwrypts
|
||||||
|
$DOTWRYN/bin/local/vim ../.local/bin/vim
|
||||||
"
|
"
|
||||||
|
@ -40,27 +40,9 @@ CONFIG__VIM() {
|
|||||||
|| __FAIL 1 'error detected in vim setup (see above)' \
|
|| __FAIL 1 'error detected in vim setup (see above)' \
|
||||||
;
|
;
|
||||||
|
|
||||||
CONFIG__VIM_OPEN_IN_PANES_BY_DEFAULT || return 3
|
|
||||||
|
|
||||||
SCWRYPTS zsh/vim/vundle/install || return 4
|
SCWRYPTS zsh/vim/vundle/install || return 4
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFIG__VIM_OPEN_IN_PANES_BY_DEFAULT() {
|
|
||||||
which vim | grep "$HOME/.local/bin/vim" && return 0
|
|
||||||
|
|
||||||
__STATUS 'updating vim to open in panes by default'
|
|
||||||
|
|
||||||
touch "$HOME/.local/bin/vim" \
|
|
||||||
&& chmod +x "$HOME/.local/bin/vim" \
|
|
||||||
|| __FAIL 1 "unable to create '$HOME/.local/bin/vim' executable; does it already exist?" \
|
|
||||||
;
|
|
||||||
|
|
||||||
{ echo '#!/bin/sh'; echo "exec $(which vim) -p "'"$@"'; } > "$HOME/.local/bin/vim" \
|
|
||||||
|| __FAIL 2 "unable to set panes-by-default option" \
|
|
||||||
|
|
||||||
__SUCCESS 'successfully set vim to open in panes by default'
|
|
||||||
}
|
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
CONFIG__ENV() {
|
CONFIG__ENV() {
|
||||||
|
Loading…
Reference in New Issue
Block a user