Mercurial > dotfiles
comparison dot_bashrc @ 491:f1d1eab204aa
Fix paths to nvim for SUDO_EDITOR
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sat, 27 Nov 2021 16:00:20 +0100 |
parents | f49b0b91925c |
children | 1403bfc694e4 |
comparison
equal
deleted
inserted
replaced
490:f49b0b91925c | 491:f1d1eab204aa |
---|---|
102 | 102 |
103 alias psm='/bin/ps -u $USER --sort pgid,time,size,time,pcpu -o pid,pgid,state,user,start_time,time,size:9,pcpu,command --forest' | 103 alias psm='/bin/ps -u $USER --sort pgid,time,size,time,pcpu -o pid,pgid,state,user,start_time,time,size:9,pcpu,command --forest' |
104 | 104 |
105 export EDITOR=nvim | 105 export EDITOR=nvim |
106 export HGEDITOR=nvim | 106 export HGEDITOR=nvim |
107 export SUDO_EDITOR=nvim | |
108 | 107 |
109 stty > /dev/null | 108 stty > /dev/null |
110 | 109 |
111 # Options | 110 # Options |
112 shopt -s globstar | 111 shopt -s globstar |
134 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | 133 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |
135 [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | 134 [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
136 | 135 |
137 [ -f ~/.bashrc.local ] && source ~/.bashrc.local | 136 [ -f ~/.bashrc.local ] && source ~/.bashrc.local |
138 | 137 |
138 # Must run after local paths are added | |
139 export SUDO_EDITOR=$(which nvim) | |
140 | |
139 if [ ! -f ~/.lscolors.parsed.sh ]; then | 141 if [ ! -f ~/.lscolors.parsed.sh ]; then |
140 echo 'Generating ls colors' | 142 echo 'Generating ls colors' |
141 dircolors --sh ~/.lscolors > ~/.lscolors.parsed.sh | 143 dircolors --sh ~/.lscolors > ~/.lscolors.parsed.sh |
142 fi | 144 fi |
143 source ~/.lscolors.parsed.sh | 145 source ~/.lscolors.parsed.sh |