From c9a4cd96768e1921c0576b09b2ff928a9a223b07 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Sun, 27 Aug 2023 20:02:50 -0500 Subject: Fix bugs (editor and git-prompt path) --- bash/bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash') diff --git a/bash/bashrc b/bash/bashrc index 9306396..d3216d2 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -37,6 +37,7 @@ shopt -s checkwinsize #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # Alias definitions. +export EDITOR=nvim if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi @@ -60,7 +61,7 @@ stty -ixon # - user@host pwd (git prompt) # Ref.: https://stackoverflow.com/a/15398153/7498073 -source ~/mahcode/dotfiles/git/git-prompt.sh +source ~/.git-prompt.sh PS1='\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ ' @@ -69,7 +70,6 @@ PS1='\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1 # FIXME: This is executed twice. One just after login (first bash) in tty. And # again then again in the terminal emulator. -export EDITOR=nvim PATH="$HOME/.local/bin:$PATH" PATH="$HOME/mahcode/bin:$PATH" PATH="$HOME/code/tex-live-native/build/bin/x86_64-linux:$PATH" -- cgit v1.2.3