/dotfiles

My dotfiles on macOS

Primary LanguageShell

Dotfiles

 ██░ ██  ▄▄▄       ███▄    █  ██ ▄█▀  ██████  █    ██ ▓█████▄  ▒█████
▓██░ ██▒▒████▄     ██ ▀█   █  ██▄█▒ ▒██    ▒  ██  ▓██▒▒██▀ ██▌▒██▒  ██▒
▒██▀▀██░▒██  ▀█▄  ▓██  ▀█ ██▒▓███▄░ ░ ▓██▄   ▓██  ▒██░░██   █▌▒██░  ██▒
░▓█ ░██ ░██▄▄▄▄██ ▓██▒  ▐▌██▒▓██ █▄   ▒   ██▒▓▓█  ░██░░▓█▄   ▌▒██   ██░
░▓█▒░██▓ ▓█   ▓██▒▒██░   ▓██░▒██▒ █▄▒██████▒▒▒▒█████▓ ░▒████▓ ░ ████▓▒░
 ▒ ░░▒░▒ ▒▒   ▓▒█░░ ▒░   ▒ ▒ ▒ ▒▒ ▓▒▒ ▒▓▒ ▒ ░░▒▓▒ ▒ ▒  ▒▒▓  ▒ ░ ▒░▒░▒░
 ▒ ░▒░ ░  ▒   ▒▒ ░░ ░░   ░ ▒░░ ░▒ ▒░░ ░▒  ░ ░░░▒░ ░ ░  ░ ▒  ▒   ░ ▒ ▒░
 ░  ░░ ░  ░   ▒      ░   ░ ░ ░ ░░ ░ ░  ░  ░   ░░░ ░ ░  ░ ░  ░ ░ ░ ░ ▒
 ░  ░  ░      ░  ░         ░ ░  ░         ░     ░        ░        ░ ░
                                                       ░

Screenshot

screenshot1 screenshot2

Install

sudo softwareupdate -i -a
xcode-select --install

curl -L https://raw.github.com/hanksudo/dotfiles/master/install.sh | sh

Set Git user info if you use .gitconfig

git config --global user.signingkey XXXXXXX
git config --global user.email your-email-address
git config --global user.name "You Name"

MacOS and Terminal Settings

~/.dotfiles/macos

Note

Fonts

Applications

Extra alias & functions

  • Git alias inside git/gitconfig
  • bat A cat(1) clone with wings (https://github.com/sharkdp/bat)
  • eza - A modern, maintained replacement for ls
  • doctoc - Generates table of contents for markdown files inside local git repository
  • lsd - list only directories
  • hosts - Quick edit /etc/hosts
  • sshc - Quick edit ~/.ssh/config
  • emptytrash - Empty the Trash on all mounted volumes and the main HDD
  • ip - detect IP by remote server
  • localip - local ip
  • ips - IPv4 IPs
  • ports - list all listening ports (sudo required)
  • whois - Enhanced WHOIS lookups
  • gz - get gzipped size
  • extract - Extract archives - use: extract <file>
  • mkcd - Make dir and cd into.
  • titler - Auto copy web title and url as specific format
  • pip-purge - Purge all Python3 packges
  • image - Search on Google Image
  • imgcat - Make iTerm2 able to display images within the terminal
  • map - Search on Google Map
  • weather - Show weather
  • qrr - QRCode reader (by zbarimg)
  • serve - Serve static files
  • zmv - zmv is a module that allow people to do massive rename.

Export exists packages

# VSCode extensions
code --list-extensions > vscode.extensions

# npm packages
npm ls -g --depth=0

# dump homebrew package list
brew bundle dump -f

Command lines for fun

fortune
sl
cowsay お元気ですか?

XCode color scheme

https://patmurraydev.github.io/San-Jose/

References