Stop doing the silly local thing

This commit is contained in:
Wryn (yage) Wagner 2022-08-16 23:44:28 -06:00
parent 485ea3247f
commit eacbd4342f
4 changed files with 7 additions and 18 deletions

3
bin/local/scwrypts Executable file
View File

@ -0,0 +1,3 @@
#!/bin/zsh
source $HOME/.config/wryn/env.zsh
"$DOTWRYN/zsh/plugins/scwrypts/scwrypts" $@

2
bin/local/vim Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/vim -p $@

View File

@ -31,4 +31,6 @@ $DOTWRYN/config/tmux.conf tmux/tmux.conf
$DOTWRYN/config/xcompose.conf X11/xcompose
$DOTWRYN/config/xconfig.conf X11/xconfig
$DOTWRYN/config/xinitrc X11/xinitrc
$DOTWRYN/bin/local/scwrypts ../.local/bin/scwrypts
$DOTWRYN/bin/local/vim ../.local/bin/vim
"

View File

@ -40,27 +40,9 @@ CONFIG__VIM() {
|| __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
}
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() {