e001c921905ff1f7882e00e39abb23fb48f84205
Trude's Dotfiles for Linux and MacOS
Run ./linux.sh or ./macos.sh.
Dependencies
Linux
- Gnome Console / Terminal (kgx; For some scripts only.)
- Gnome Desktop
- Arch or Debian-based distro.
MacOS
- None (HomeBrew will be installed if
pis called.)
Scripts
Custom commands
p- Cross-distro package manager wrapper.- Written in bash for Linux, using the system's package manager.
- Written in ZSH script for MacOS, as a function that calls brew.
m- Cross-distro maintenance script.- Replaced by
p mon MacOS (for updating MacOS itself).
- Replaced by
Custom scripts used by other programs
p.sh- For managing packages on Linux systems.colors.sh- To add colors to other scripts. Also works on MacOS.
Todo
- Automatically install extensions (GNOME)
- Vitals
- Dash to Dock
- AppIndicator Support
MacOS Commands (built-in)
Password-protected Zip:
zip -e protected.zip /file/to/protect/
Remove dotfiles:
dot_clean .
Show all files in finder:
defaults write com.apple.Finder AppleShowAllFiles 1
Search using Spotlight:
mdfind "file name”
Rebuild Spotlight index:
mdutil -E
Turn off Spotlight indexing:
dutil -i off
Repair Disk permissions:
sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /
Generate SHA-1 digest of a file:
/usr/bin/openssl sha1 download.dmg
Disable sleep temporarily:
caffeinate
Open multiple instances of a program:
open multiple instances open -n /Applications/Safari.app/
Check network speed:
networkQuality
Convert files (txt, html, rtf, rtfd, doc, docx):
textutil -convert html journal.doc
Languages
CSS
49.9%
Vim Script
36.6%
Shell
13.5%