====== How To ====== ===== links ===== ln -s existingDir newDir ===== alternatives ===== Choose default from different installed JREs sudo update-alternatives --config java ===== Find path a program is installed in ===== where program ===== Shell variables ===== ^Variable ^Meaning ^ |!$ |last argument of last command | |!! |last command, e.g. sudo !! | |$? |exit code of last run program| ===== lame scripting tricks ===== ==== ZSHs .history under Dropbox ==== History is saved in a folder, which is sync'ed via Dropbox-Service, local .history is a symlink to that file: cp .history .history.bak; mv .history Dropbox/ && ln -s Dropbox/.history .history ==== short form for if constructs ==== [[ condition ]] && doSmthIfConditionIsTrue;