From fb5679604660774c2bfefe14a4d261e9bd7c135b Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 27 Jan 2022 10:41:14 -0600 Subject: [PATCH] add global gitignore --- home/private_dot_config/git/config | 3 ++- home/private_dot_config/git/ignore | 2 ++ system/env.sh | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 home/private_dot_config/git/ignore diff --git a/home/private_dot_config/git/config b/home/private_dot_config/git/config index d80c1c9..16ab6b6 100644 --- a/home/private_dot_config/git/config +++ b/home/private_dot_config/git/config @@ -1,7 +1,8 @@ [credential] helper = cache [core] - editor = nvim + editor = vim + excludesfile = /home/daylin/.config/git/ignore [user] name = Daylin Morgan email = daylinmorgan@gmail.com diff --git a/home/private_dot_config/git/ignore b/home/private_dot_config/git/ignore new file mode 100644 index 0000000..a2f6ba4 --- /dev/null +++ b/home/private_dot_config/git/ignore @@ -0,0 +1,2 @@ +.vscode/ +tmp/ diff --git a/system/env.sh b/system/env.sh index 0ece1bc..6af445f 100644 --- a/system/env.sh +++ b/system/env.sh @@ -20,7 +20,9 @@ unsetopt autocd # Vim Settings # export VIMINIT='source $MYVIMRC' # export MYVIMRC='$DOTFILES_DIR/system/.vimrc' -if is-executable nvim; then +if is-executable lvim; then + export EDITOR=lvim +elif is-executable nvim; then export EDITOR=nvim else export EDITOR=vim