diff options
-rw-r--r-- | bash/alias.bash | 13 | ||||
-rw-r--r-- | config.default | 1 |
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" |