diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-10-12 09:39:48 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-10-12 09:39:48 +0200 |
commit | c75b78c79109d5a2dc9bb0680bbc3a3add45cd94 (patch) | |
tree | 3f05ad7b92dfc84d49f8abff07589304599c6832 | |
parent | 7610c017de2d4af345f1ba9571f9fa9595b17afe (diff) | |
download | dotfiles-c75b78c79109d5a2dc9bb0680bbc3a3add45cd94.tar.gz |
nvim alias
-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" |