New answers tagged alias
9
votes
Accepted
difference ZSH and BASH for $RANDOM?
bash starts array indexes at 0, zsh at 1.
One slightly strange-looking way to overcome this is
server_list=(HPC1 HPC2)
alias HPC='ssh -l username ${server_list[(($RANDOM % 2 - 2))]}'
This puts the ...
Top 50 recent answers are included
Related Tags
alias × 188macos × 66
terminal × 56
finder × 44
bash × 35
symlink × 23
command-line × 16
applescript × 14
email × 10
mail.app × 9
icloud × 8
zsh × 8
dock × 6
filesystem × 6
folders × 6
backup × 5
mac × 4
network × 4
spotlight × 4
script × 4
icon × 4
launchpad × 4
ios × 3
applications × 3
mojave × 3