sunry81914 / dotfiles

My dotfiles on macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Applications

Extra alias & functions

  • Git alias inside git/gitconfig
  • bat A cat(1) clone with wings (https://github.com/sharkdp/bat)
  • Use exa instead of 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
  • pip3-purge - Purge all Python3 packges
  • image - Search on Google Image
  • map - Search on Google Map
  • weather - Show weather
  • server - Start an HTTP server from a directory, optionally specifying the port.
  • serve - Serve static files
  • zmv - zmv is a module that allow people to do massive rename.

Export VSCode extensions

code --list-extensions > vscode.extensions

Export NPM packages list

npm ls -g --depth=0

Command lines for fun

fortune
sl
cowsay お元気ですか?

XCode color scheme

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

References

About

My dotfiles on macOS


Languages

Language:Shell 91.9%Language:Ruby 8.1%