getting an .sshrc brew install .sshrc add things to .sshrc you want run in new ssh sessions export PROMPT_COMMAND='history -a' alias lastupdated='stat --printf="%y %n\n" $(ls -tr $(find * -type f))' alias ssh=sshrc in your local .*rc file