fix: remove 'edit_editor_config' alias
This commit is contained in:
@@ -4,16 +4,3 @@
|
|||||||
# Set NeoVim as default editor
|
# Set NeoVim as default editor
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export SUDO_EDITOR="$EDITOR"
|
export SUDO_EDITOR="$EDITOR"
|
||||||
|
|
||||||
declare -A -r EDITOR_CONFIGS=(
|
|
||||||
["nvim"]="$HOME/.config/nvim/init.lua"
|
|
||||||
["vim"]="$HOME/.vimrc"
|
|
||||||
)
|
|
||||||
|
|
||||||
edit_editor_config() {
|
|
||||||
for editor in "${!EDITOR_CONFIGS[@]}"; do
|
|
||||||
if [ "$EDITOR" = "$editor" ]; then
|
|
||||||
$EDITOR "${EDITOR_CONFIGS[$editor]}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user