78 lines
1.3 KiB
Markdown
78 lines
1.3 KiB
Markdown
# Trude's Dotfiles for MacOS
|
|
|
|
**Run `./install.sh`.**
|
|
|
|
## Dependencies
|
|
- None (HomeBrew will be installed when `p` is called for the first time.)
|
|
|
|
## Scripts
|
|
|
|
### Custom commands
|
|
|
|
- `p` Wrapper for Brew. Acts as a shortcut automate parts of brew.
|
|
|
|
### Custom scripts
|
|
My collection of scripts is available in the scripts folder. You may find something useful there.
|
|
|
|
## Other (useful) MacOS Commands (built-in)
|
|
|
|
**Password-protected Zip:**
|
|
```sh
|
|
zip -e protected.zip /file/to/protect/
|
|
```
|
|
|
|
**Remove dotfiles:**
|
|
```sh
|
|
dot_clean .
|
|
```
|
|
|
|
**Show all files in finder:**
|
|
```sh
|
|
defaults write com.apple.Finder AppleShowAllFiles 1
|
|
```
|
|
|
|
**Search using Spotlight:**
|
|
```sh
|
|
mdfind "file name”
|
|
```
|
|
|
|
**Rebuild Spotlight index:**
|
|
```sh
|
|
mdutil -E
|
|
```
|
|
|
|
**Turn off Spotlight indexing:**
|
|
```sh
|
|
dutil -i off
|
|
```
|
|
|
|
**Repair Disk permissions:**
|
|
```sh
|
|
sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /
|
|
```
|
|
|
|
**Generate SHA-1 digest of a file:**
|
|
```sh
|
|
/usr/bin/openssl sha1 download.dmg
|
|
```
|
|
|
|
**Disable sleep temporarily:**
|
|
```sh
|
|
caffeinate
|
|
```
|
|
|
|
**Open multiple instances of a program:**
|
|
```sh
|
|
open multiple instances open -n /Applications/Safari.app/
|
|
```
|
|
|
|
**Check network speed:**
|
|
```sh
|
|
networkQuality
|
|
```
|
|
|
|
**Convert files (txt, html, rtf, rtfd, doc, docx):**
|
|
```sh
|
|
textutil -convert html journal.doc
|
|
```
|