aboutsummaryrefslogtreecommitdiff
path: root/bash
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 /bash
parent7610c017de2d4af345f1ba9571f9fa9595b17afe (diff)
downloaddotfiles-c75b78c79109d5a2dc9bb0680bbc3a3add45cd94.tar.gz
nvim alias
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'