aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/alias.bash13
1 files changed, 12 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'