Trim to essentials
Handle spaces in current directory
Use coreutils if installed
iTerm2 prefs update