Skip to content

Instantly share code, notes, and snippets.

@csomh
Created April 11, 2018 19:46
Show Gist options
  • Save csomh/269aa72b54a33209e407761908167f67 to your computer and use it in GitHub Desktop.
Save csomh/269aa72b54a33209e407761908167f67 to your computer and use it in GitHub Desktop.
for-alias
for i in {2..5}; do
a=$(printf '%*s' $i | tr ' ' '.')
p=$(printf '%*s' $i | sed 's/ /\.\.\//g')
alias $a="cd $p"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment