update
This commit is contained in:
parent
0a982c0e94
commit
30d0d27a48
1 changed files with 9 additions and 4 deletions
13
.bashrc
13
.bashrc
|
|
@ -1,7 +1,12 @@
|
||||||
nvr_git () {
|
nvr_git () {
|
||||||
local repo_path=$(git rev-parse --show-superproject-working-tree 2>/dev/null)
|
local main_module_repo_path=$(git rev-parse --show-superproject-working-tree 2>/dev/null)
|
||||||
if [ -n "$repo_path" ]; then
|
local repo_path=$(git rev-parse --show-toplevel 2>/dev/null)
|
||||||
local servername=/tmp/nvr$(echo $repo_path | tr "/" "_")
|
if [[ -z "$main_module_repo_path" ]]; then
|
||||||
|
main_module_repo_path=$repo_path
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$main_module_repo_path" ]; then
|
||||||
|
local servername=/tmp/nvr$(echo $main_module_repo_path | tr "/" "_")
|
||||||
nvr -s --servername $servername "$@"
|
nvr -s --servername $servername "$@"
|
||||||
else
|
else
|
||||||
/usr/bin/nvim "$@"
|
/usr/bin/nvim "$@"
|
||||||
|
|
@ -12,6 +17,6 @@ alias nvim=nvr_git
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export PATH="$PATH:$HOME/.cargo/bin"
|
export PATH="$PATH:$HOME/.cargo/bin"
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init bash)"
|
||||||
alias export_esp=". /home/jaroslaw/bin/export-esp.sh"
|
alias export_esp=". /home/jaroslaw/bin/export-esp.sh"
|
||||||
alias get_idf='. $HOME/src/esp/esp-idf/export.sh'
|
alias get_idf='. $HOME/src/esp/esp-idf/export.sh'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue