-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.zsh_history
31 lines (31 loc) · 5.49 KB
/
.zsh_history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
: 1460558401:0;cd ~/Library/Caches && rm -rf * # Remove all current user's cached files.
: 1460558407:0;cd ~/Library/Saved\ Application\ State && rm -rf * # Remove all saved app state files.
: 1460897208:0;sudo osascript -e 'set Volume 3.5' # Set volume to 50%.
: 1461227305:0;sudo find / -iname \*adobe\* # Remove any Adobe related file.
: 1461323326:0;cd ~/.Trash && rm -rf * # Remove all current user's trashed files.
: 1461533630:0;find * -maxdepth 0 -type d -exec tar cvf {}.tar {} \; # Make archive of each current directory's subdirectory.
: 1461534613:0;tar -cvf Qobuz-Nino_Ferrer-Nino_Ferrer_\(aif\).tar -- -Nino_Ferrer/ # Make archive of current directory's specified subdirectory, specifying end of options. (i) Useful when operating on a filename starting with '-'. /!\ `find * -maxdepth 0 -type d -exec tar cvf -- Qobuz-{}_\(aif\).tar -{} \;` and `find * -maxdepth 0 -type d -exec tar cvf -- Qobuz-Nino_Ferrer-Nino_Ferrer_\(aif\).tar -Nino_Ferrer/ \;` didn't work.
: 1462467128:0;0 0 * * 1 find ~/Library/{Caches,Saved\ Application\ State}/* -mindepth 0 -exec rm -rf {} \; # [crontab] On monday at midnight, remove all current user's cached and saved app state files.
: 1465847390:0;cd ~/Dropbox; mv graphics pics; mv audio phon; mv video vid; mv vid vis; mv phon aud; ln -s ~/DCIM ~/Pictures/DCIM; ln -s ~/Camera ~/Pictures/Camera # just setting up my fs
: 1467476138:0;sudo find / -name '.DS_Store' -delete # Remove all .DS_Store files. /!\ Prefer using case-sensitive (`-name`) version over case-insensitive (`-iname`) version.
: : ;while sleep 1; do ${command}; done # Execute a command each second until Control-C are pressed.
: 1470820523:0;sudo find . -type f -exec chmod 644 {} \; # Change all current directory's files access modes to 644 (-rw-r--r--). /!\ Don't set execute bit on files.
: 1470820693:0;sudo find . -type d -exec chmod 755 {} \; # Change all current directory's subdirectories access modes to 755 (-rwxr-xr-x). /!\ Set execute bit on directories only.
: 1470645583:0;/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' /Applications/Utilities/Terminal.app/Contents/Info.plist # Get Terminal app bundle ID.
: 1471769505:0;ln /private/var/folders/qk/mp7kzjm57sz_j3yn4x85kn2m0000gn/C/com.apple.appstore/682658836/* ~/Desktop/com.apple.appstore/682658836 # Make link of the downloading Mac App Store's GarageBand installer package. [i] Useful to save offline local 'standalone' MAS apps installer packages. (i) [Right click] + 'Pause' on the MAS download before download is complete; note that some apps installer packages don't work.
: 1471769890:0;ln /private/var/folders/qk/mp7kzjm57sz_j3yn4x85kn2m0000gn/C/com.apple.garageband10/com.apple.MusicApps/audiocontentdownload.apple.com/lp10_ms3_content_2016/* ~/Desktop/com.apple.garageband10/com.apple.MusicApps/audiocontentdownload.apple.com/lp10_ms3_content_2016 # Make link of the downloading GarageBand essential collection of sounds and loops installer package. (i) Wait before the download end to do so but don't enter prompted admin password; for GarageBand all available sounds, no password may be prompted, which means that one might sometimes need to burst the command (or automate command repeat) until the download is complete so no installer package is lost.
: 1472134550:0;for f in `find .`; do mv -v "$f" "`echo $f | tr '[a-z]' '[A-Z]'`"; done # For each file from current directory, lowercase filename.
: 1487876836:0;/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' /Applications/System\ Preferences.app/Contents/Info.plist # Output System preferences app bundle ID.
: 1488466840:0;iconutil -c icns ~/Desktop/Icon.iconset # Use iconutil to create an ICNS file manually. (https://developer.apple.com/library/content/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html)
: 1507300916:0;find . -type f ! -name '*[0-9].*' # Find all files whose name does not contain a digit before a dot.
: 1514395883:0;0 0 * * MON find ~/Library/{Caches,Saved\ Application\ State}/* -mindepth 0 -exec rm -rf {} \; # [crontab] On monday at midnight, remove all current user's cached and saved app state files.
: 1514395886:0;59 23 * * 7 find ~/Library/{Caches,Saved\ Application\ State}/* -mindepth 0 -exec rm -rf {} \; # [crontab] On sunday at 23:59:, remove all current user's cached and saved app state files.
: 1515333974:0;ln -s ./.shrc ./.shinit # (i) Neither `ln -s ${HOME}/.files/.shrc ${HOME}/.files/.shinit` nor `ln -s ~/.files/.shrc ~/.files/.shinit` worked, and I don't know whether `ln -s .shrc .shinit` should be avoided.
: 1516395921:0;0 0 * * MON /bin/bash ${HOME}/.files/lib/scpt/RemoveCreativeCloudFilesFromUsersHome.sh # [crontab] At 00:00 on monday, run RemoveCreativeCloudFilesFromUsersHome.sh.
: 1654006683:0;cp -R /System/Applications/Utilities/Terminal.app/Contents/Resources/Fonts/* /Library/Fonts
: 1654006683:0;rsync -axHEWS --numeric-ids --progress /Volumes/KVPB\'s\ Extreme\ Pro\ 2TB/ /Volumes/KVPB\'s\ Rugged\ SSD\ Pro\ 1\ TB/
: 1654006683:0;rsync -axHEWS --dry-run --numeric-ids --update --ignore-existing --progress /Volumes/KVPB\'s\ Extreme\ Pro\ 2TB/ /Volumes/KVPB\'s\ Rugged\ SSD\ Pro\ 1\ TB/
: 1654006683:0;rsync -axHEWS --numeric-ids --ignore-existing --progress /Volumes/KVPB\'s\ Extreme\ Pro\ 2TB/ /Volumes/KVPB\'s\ Rugged\ SSD\ Pro\ 1\ TB/
: 1654006683:0;rsync -axHEWS --numeric-ids --update --progress /Volumes/KVPB\'s\ Extreme\ Pro\ 2TB/ /Volumes/KVPB\'s\ Rugged\ SSD\ Pro\ 1\ TB/
: 1654006683:0;diff /Volumes/KVPB\'s\ Extreme\ Pro\ 2TB /Volumes/KVPB\'s\ Rugged\ SSD\ Pro\ 1\ TB
: 1654006683:0;du -d 0 -h /Volumes/KVPB\'s\ Rugged\ SSD\ Pro\ 1\ TB