aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-10-12 09:39:48 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-10-12 09:39:48 +0200
commitc75b78c79109d5a2dc9bb0680bbc3a3add45cd94 (patch)
tree3f05ad7b92dfc84d49f8abff07589304599c6832
parent7610c017de2d4af345f1ba9571f9fa9595b17afe (diff)
downloaddotfiles-c75b78c79109d5a2dc9bb0680bbc3a3add45cd94.tar.gz
nvim alias
-rw-r--r--bash/alias.bash13
-rw-r--r--config.default1
2 files changed, 13 insertions, 1 deletions
diff --git a/bash/alias.bash b/bash/alias.bash
index d610426..0760fcd 100644
--- a/bash/alias.bash
+++ b/bash/alias.bash
@@ -7,7 +7,9 @@ alias la="ls -a"
alias ll="ls -lh"
alias lla="ls -lha"
-alias vim="nvim"
+if which nvim > /dev/null 2>&1 && [ ! "$FORCE_VANILLA_VIM" = "yes" ] ; then
+ alias vim="nvim"
+fi
# Termite compat
alias ssh="TERM=xterm-color ssh"
@@ -19,3 +21,12 @@ alias gitls="git status --short ."
alias reload="source \$HOME/.bashrc"
alias pip-upgrade-venv="pip freeze | cut -d'=' -f1 | xargs -n1 pip install -U"
+
+alias vybld='docker pull vyos/vyos-build:equuleus && docker run --rm -it \
+ -v "$(pwd)":/vyos \
+ -v "$HOME/.gitconfig":/etc/gitconfig \
+ -v "$HOME/.bash_aliases":/home/vyos_bld/.bash_aliases \
+ -v "$HOME/.bashrc":/home/vyos_bld/.bashrc \
+ -w /vyos --privileged --sysctl net.ipv6.conf.lo.disable_ipv6=0 \
+ -e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) \
+ vyos/vyos-build:equuleus bash'
diff --git a/config.default b/config.default
index 9ce2c4a..e561a5b 100644
--- a/config.default
+++ b/config.default
@@ -19,3 +19,4 @@ BB_PRUNE_DAYS=5
BB_COLOR_HIGHLIGHT="\e[0;34m"
BB_COLOR_RESET="\e[39m"
+FORCE_VANILLA_VIM="no"