zsh-alias

Can zsh buildtins be aliased?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 16:21:21
问题 Reading What's the difference between shell builtin and shell keyword? I wondered how much I could alias stuff in the shell. So for example instead of writing string_with_spaces='some spaces here' if [ -n $string_with_spaces ]; then echo "The string is non-empty" fi the challenge would be to to write something like signvico='iuj spacetoj tie ĉi' se ja nevakua $signvico plie vera ope nu tiam echo "la signvico ne estas vakua!" eme So I tried this alias se='if' alias tiam='then' alias eme='fi'