yage
ad66d50b11
finally going to commit that zshrc refactor - smolvsdefault on altaria - i3-utils refactor - no need for custom scwrypt executable anymore - time to say goodbye to the old dotwryn.env in favor of the new and improved rc.ds - vim/rc.d refactor + QuickREPL and QuickCommand replacements for \r and \t - going to stop tracking Archives explicitly until new hard drive - tty-colorscheme is now referenced directly - colorscheme/spring-sunset needed to swap primary/secondary colors for focus in i3 since it was confusing - setup config no longer needs to create ~/.config/wryn/env.vim; added some dependencies to arch-linux - switch from dmenu to rofi by default; allow .i3 overrides in colorschemes; tty-colorscheme is now referenced directly
17 lines
430 B
Bash
17 lines
430 B
Bash
() { # set EDITOR/VISUAL variables
|
|
[[ ${#PREFERRED_EDITORS[@]} -eq 0 ]] && {
|
|
echo 'unable to find $PREFERRED_EDITORS environment variable'
|
|
return 1
|
|
}
|
|
|
|
local PROGRAM PROGRAM_EXECUTABLE
|
|
for PROGRAM in ${PREFERRED_EDITORS[@]}
|
|
do
|
|
PROGRAM_EXECUTABLE="$(which $PROGRAM 2>/dev/null)"
|
|
[ -f "$PROGRAM_EXECUTABLE" ] \
|
|
&& export EDITOR="$PROGRAM_EXECUTABLE" \
|
|
&& export VISUAL="$PROGRAM_EXECUTABLE" \
|
|
&& break
|
|
done
|
|
}
|