diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-03-19 00:36:39 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-03-19 00:36:39 +0100 |
commit | 94ecec4b4d6865bfd28fe95b9eb0a452afb10abb (patch) | |
tree | f1db8befa055343a824670f1019e2c86bbe594fa /bash | |
parent | 8c22aebe9e1b3daf91c7abb3b36acaa9b0748053 (diff) | |
download | dotfiles-94ecec4b4d6865bfd28fe95b9eb0a452afb10abb.tar.gz |
bash alias
Diffstat (limited to 'bash')
-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 |