From bf5df2e802df4a46378855fd7ef0b0a4979d8c27 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Mon, 12 Feb 2024 18:00:19 +0100 Subject: Improve some config stuff --- Common/bashrc.m4 | 8 ++++---- Common/zshrc.m4 | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'Common') diff --git a/Common/bashrc.m4 b/Common/bashrc.m4 index 6f64138..2340348 100644 --- a/Common/bashrc.m4 +++ b/Common/bashrc.m4 @@ -12,9 +12,9 @@ esac # Check if env setup file exists if [ ! -f ~/.dotfiles_env ]; then echo "DEFAULT_USER=$USER" >> ~/.zsh_env_setup - echo "export GIT_EDITOR=\"DEFAULT_EDITOR\"" >> ~/.dotfiles_env - echo "export GIT_AUTHOR_NAME=\"GIT_USER\"" >> ~/.dotfiles_env - echo "export GIT_AUTHOR_EMAIL=\"GIT_EMAIL\"" >> ~/.dotfiles_env + echo "export GIT_EDITOR=\"DT_EDITOR\"" >> ~/.dotfiles_env + echo "export GIT_AUTHOR_NAME=\"DT_GIT_USER\"" >> ~/.dotfiles_env + echo "export GIT_AUTHOR_EMAIL=\"DT_GIT_EMAIL\"" >> ~/.dotfiles_env fi # Source env setup file @@ -28,7 +28,7 @@ export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 # Set editor -export EDITOR="DEFAULT_EDITOR" +export EDITOR="DT_EDITOR" # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options diff --git a/Common/zshrc.m4 b/Common/zshrc.m4 index 2cafd8e..36e2857 100644 --- a/Common/zshrc.m4 +++ b/Common/zshrc.m4 @@ -1,4 +1,3 @@ -m4_include(`system.m4')m4_dnl # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. @@ -14,9 +13,9 @@ export KEYTIMEOUT=1 if [ ! -f ~/.dotfiles_env ]; then echo "export ZSH=$HOME/.oh-my-zsh" > ~/.dotfiles_env echo "DEFAULT_USER=$USER" >> ~/.dotfiles_env - echo "export GIT_EDITOR=\"DEFAULT_EDITOR\"" >> ~/.dotfiles_env - echo "export GIT_AUTHOR_NAME=\"GIT_USER\"" >> ~/.dotfiles_env - echo "export GIT_AUTHOR_EMAIL=\"GIT_EMAIL\"" >> ~/.dotfiles_env + echo "export GIT_EDITOR=\"DT_EDITOR\"" >> ~/.dotfiles_env + echo "export GIT_AUTHOR_NAME=\"DT_GIT_USER\"" >> ~/.dotfiles_env + echo "export GIT_AUTHOR_EMAIL=\"DT_GIT_EMAIL\"" >> ~/.dotfiles_env fi # Source env setup file @@ -60,7 +59,7 @@ export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 # Set editor -export EDITOR="DEFAULT_EDITOR" +export EDITOR="DT_EDITOR" # Enable vim keybindings (This is enabled using zsh-vi-mode now. # bindkey -v -- cgit v1.2.3