diff options
-rw-r--r-- | bash/10-alias.bash | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bash/10-alias.bash b/bash/10-alias.bash index b0bd97d..95d935d 100644 --- a/bash/10-alias.bash +++ b/bash/10-alias.bash @@ -35,3 +35,18 @@ alias vybld='docker pull vyos/vyos-build:equuleus && docker run --rm -it \ -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' + +for i in $(seq 10); do + DOTS='.' + for _ in $(seq $i); do + DOTS+="." + done + + PTH='' + for _ in $(seq $i); do + PTH+="../" + done + + alias $DOTS="cd $PTH" + unset DOTS PTH +done |