Skip to content

Instantly share code, notes, and snippets.

@x86nick
Forked from joncalhoun/..README.md
Created July 19, 2019 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x86nick/7432b41a85eb714809bc46b7a2ee7c88 to your computer and use it in GitHub Desktop.
Save x86nick/7432b41a85eb714809bc46b7a2ee7c88 to your computer and use it in GitHub Desktop.
Most of my settings for a new mac

Chrome

  • Download & install Chrome
  • Login & sync settings/whatever else

Mac OS settings

  • General -> Use dark menu bar

  • General -> Default web browser: Google Chrome

  • Desktop & Screensaver -> Color Burst 2

  • Dock -> Size=small,

  • Dock -> Magnification, almost min size

  • Dock -> Position on screen: Left

  • Dock -> Automatically hide and show the Dock

  • Dock -> Drag all icons off physical dock on screen (hover a second to get the remove option)

  • Mission Control -> Uncheck Auto rearrange spaces

  • ctrl+up and add a few spaces

  • Sound -> Show volume in menu bar (so I can opt+click to change sources easily)

  • Energy Saver -> Computer sleep: Never (hackintosh specific setting since waking from sleep sometimes bugs)

  • Energy Saver -> Uncheck put hard disks to sleep (hackintosh specific setting since waking from sleep sometimes bugs)

  • Energy Saver -> Uncheck wake for ethernet access (hackintosh specific setting since waking from sleep sometimes bugs)

Finder

Open a finder window, then hit cmd+, to open preferences then set the following:

  • General -> Show these items: check what you want
  • Sidebar -> check what you want (I especially like having my home dir here)
  • Advanced -> Show all filename ext
  • Advanced -> Uncheck show warning before changing an ext

This requires a terminal command:

  • Show hidden files (I think its cmd+ctrl+. in mac high sierra)

Software

Below is what I think is all the software I installed along with any custom setup

Go

Chrome

No custom setup

BetterTouchTool (back/forward on mouse)

  • Install license
  • Button 3 -> cmd+[
  • Button 4 -> cmd+]
  • Basic Settings -> Launch on startup

Screenflow (recording)

  • Preferences -> Advanced -> Computer Audio (install this)
  • File -> Batch Export -> Manage button -> Uncheck all
  • File -> Batch Export -> Manage button -> Add new one w/ 30fps, 6kb/s, multi-pass, auto, 44.1, 256kb/s, stereo

Eventually this needs to be setup to export to a different folder most likely, but fine for now

VSCode

Git

Slack

  • Download & install
  • Sign in to your orgs

Slate

Window manager that allows me to use keyboard shortcuts to move windows around on my screen.

  • Download https://github.com/jigish/slate
  • Enable accessibility stuff
  • Add the .slate file in this gist as ~/.slate on your system
  • Click icon on menu and set to launch at login

Sizeup

I mostly use slate, but sizeup has a few shortcuts to move windows from space to space that I still use it for.

Nerd Fonts

iTerm2

In preferences:

  • General -> Uncheck Confirm Quit Iterm2
  • General -> Uncheck "Adjust window when changing font size"
  • Appearance -> Theme: Dark
  • Appearance -> Hide scrollbars
  • Keys -> Click the "create a dedicated hotkey window" button and set it up (I use ctrl+opt+cmd+t)
  • Profiles -> Hotkey -> General -> Reuse previous session's dir
  • Profiles -> Hotkey -> Window -> Adjust look if you want (I decrease transparency)
  • Profiles -> Hotkey -> Terminal -> Silence bell
  • Profiles -> Hotkey -> Terminal -> Uncheck send growl notifications
  • Profiles -> Hotkey -> Terminal -> uncheck show bell icon in tabs
  • Profiles -> Hotkey -> Terminal -> uncheck show bell icon in tabs
  • Profiles -> Hotkey -> Text -> 20 pt Meslo LG S DZ Regular Nerd Font Complete
  • NOTE: I also make these profile changes to the default profile so new tabs match

Cast profile:

  • Duplicate default
  • Profiles -> Hotkey -> Text -> 28 pt Meslo LG S DZ Regular Nerd Font Complete

Oh My ZSH

Another alternative to ZSH is fish (see https://jvns.ca/blog/2017/04/23/the-fish-shell-is-awesome/) but since I've been using this for a bit I'm sticking w/ it.

Antigen (Requires Oh My ZSH)

SSHFS (for mounting remote server dir)

mount_server() {
  if ps aux | grep -i sftp | grep -v grep | grep jon@storage.local; then 
    echo "already mounted..."
  else 
    /usr/local/bin/sshfs -o allow_other,defer_permissions jon@storage.local:/mnt/md0/stuff/ ~/Mount/Storage 
  fi
}
  • Add to automator if you want (may stall boot if no connection!)

Dropbox

  • Download and install
  • Setup screenshot sharing

Ngrok

Useful for testing webhooks etc in dev - exposes a local port to a temporary URL.

sudo mv Downloads/ngrok /usr/bin

Postgres

This should also setup the psql command for you as part of the process.

Homebrew

NOTE: This will very likely also install xcode command line tools

Docker

ffmpeg

  • brew install ffmpeg

rsvg-convert

  • brew install librsvg

Inkscape

Other software to consider

Websites

Github

  • Setup SSH keys (Github has instructions for all of this)
[user]
name = YOUR NAME
email = your@email.com
[core]
editor = emacs
[alias]
co = checkout
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
b = branch
ci = commit
cm = commit
st = status
amend = git commit --amend
unstage = reset HEAD --
[push]
default = simple
[color]
ui = true
[filter "lfs"]
smudge = git-lfs smudge %f
required = true
clean = git-lfs clean %f
[url "git@github.com:"]
insteadOf = https://github.com/
[pager]
branch = false
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Shows app icons and background apps, spreads icons in the same place.
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
# Abstract positions
alias fullscreen move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
alias tophalf move screenOriginX;screenOriginY screenSizeX;screenSizeY/2
alias bottomhalf move screenOriginX;screenOriginY+screenSizeY/2 screenSizeX;screenSizeY/2
# Aliases for 2/3 | 1/3 corners (roughly - really is like 2/3 and 1/3)
alias lefttoptwothirds move screenOriginX;screenOriginY screenSizeX*2/3;screenSizeY/2
alias leftbottwothirds move screenOriginX;screenOriginY+(screenSizeY/2) screenSizeX*2/3;screenSizeY/2
alias righttoponethird move screenSizeX*2/3;screenOriginY screenSizeX*1/3;screenSizeY/2
alias rightbotonethird move screenSizeX*2/3;screenOriginY+(screenSizeY/2) screenSizeX*1/3;screenSizeY/2
alias toptall move screenOriginX;screenOriginY screenSizeX;screenSizeY*19/50
alias bottomtall move screenOriginX;screenOriginY+(screenSizeY*19/50) screenSizeX;screenSizeY*31/50
alias leftfat move screenOriginX;screenOriginY screenSizeX*2/3;screenSizeY
alias rightthin move screenOriginX+screenSizeX*2/3;screenOriginY screenSizeX/3;screenSizeY
alias topleft corner top-left resize:screenSizeX/2;screenSizeY/2
alias topright corner top-right resize:screenSizeX/2;screenSizeY/2
alias bottomleft corner bottom-left resize:screenSizeX/2;screenSizeY/2
alias bottomright corner bottom-right resize:screenSizeX/2;screenSizeY/2
alias threekey ctrl;alt;cmd
alias otherthreekey alt;cmd;shift
# Resize Bindings
#bind right:alt resize +10% +0
#bind left:alt resize -10% +0
#bind up:alt resize +0 -10%
#bind down:alt resize +0 +10%
#bind right:ctrl;alt resize -10% +0 bottom-right
#bind left:ctrl;alt resize +10% +0 bottom-right
#bind up:ctrl;alt resize +0 +10% bottom-right
#bind down:ctrl;alt resize +0 -10% bottom-right
bind m:${threekey} ${fullscreen}
bind left:${otherthreekey} move screenOriginX;screenOriginY screenSizeX*1/3;screenSizeY
bind right:${otherthreekey} move screenSizeX*1/3;screenOriginY screenSizeX*2/3;screenSizeY
bind up:${threekey} ${tophalf}
bind right:${threekey} ${righthalf}
bind left:${threekey} ${lefthalf}
bind down:${threekey} ${bottomhalf}
bind o:${threekey} ${topleft}
bind p:${threekey} ${topright}
bind l:${threekey} ${bottomleft}
bind ;:${threekey} ${bottomright}
bind o:${otherthreekey} ${lefttoptwothirds}
bind l:${otherthreekey} ${leftbottwothirds}
bind p:${otherthreekey} ${righttoponethird}
bind ;:${otherthreekey} ${rightbotonethird}
bind up:shift;alt;cmd ${toptall}
bind down:shift;alt;cmd ${bottomtall}
bind left:shift;alt;cmd ${leftfat}
bind right:shift;alt;cmd ${rightthin}
# Push Bindings
#bind right:ctrl;cmd push right bar-resize:screenSizeX/3
#bind left:ctrl;cmd push left bar-resize:screenSizeX/3
#bind up:ctrl;cmd push up bar-resize:screenSizeY/2
#bind down:ctrl;cmd push down bar-resize:screenSizeY/2
# Nudge Bindings
#bind right:shift;alt nudge +10% +0
#bind left:shift;alt nudge -10% +0
#bind up:shift;alt nudge +0 -10%
#bind down:shift;alt nudge +0 +10%
# Throw Bindings
#bind 1:ctrl;alt throw 0 resize
#bind 2:ctrl;alt throw 1 resize
#bind 3:ctrl;alt throw 2 resize
#bind right:ctrl;alt;cmd throw right resizez
#bind left:ctrl;alt;cmd throw left resize
#bind up:ctrl;alt;cmd throw up resize
#bind down:ctrl;alt;cmd throw down resize
# Focus Bindings
#bind right:cmd focus right
#bind left:cmd focus left
#bind up:cmd focus up
#bind down:cmd focus down
#bind up:cmd;alt focus behind
#bind down:cmd;alt focus behind
# Window Hints
bind e:cmd hint
bind g:cmd grid padding:5 1:3,2 0:3,2 2:3,2
bind z:shift;ctrl;cmd move screenOriginX;screenOriginY 1920;1080
bind v:${threekey} move screenOriginX;screenOriginY 1920;1080
bind b:${threekey} move screenOriginX+1920;screenOriginY 1520;1440
bind f:${threekey} move screenOriginX;screenOriginY 1920;540
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/jon/.oh-my-zsh"
POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k
POWERLEVEL9K_MODE='nerdfont-complete'
POWERLEVEL9K_GO_VERSION_FOREGROUND='015'
POWERLEVEL9K_GO_VERSION_BACKGROUND='110'
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status go_version background_jobs time)
export GOPATH=/Users/jon/go
export PATH=$GOPATH/bin:$PATH
export PATH=/usr/local/go/bin:$PATH
export PATH="/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH"
# If there is cache available
if [[ -f ${ADOTDIR:-$HOME/.antigen}/.cache/.zcache-payload ]]; then
# Load bundles statically
source ${ADOTDIR:-$HOME/.antigen}/.cache/.zcache-payload
# You will need to call compinit
autoload -Uz compinit
compinit -d ${HOME}/.zcompdump
else
# If there is no cache available do load and execute antigen
source ~/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle wd
antigen bundle shrink-path
# antigen bundle heroku
# antigen bundle pip
# antigen bundle lein
antigen bundle command-not-found
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
# Load the theme.
# antigen theme agnoster
antigen theme bhilburn/powerlevel9k powerlevel9k
# Tell Antigen that you're done.
antigen apply
fi
# Helpful functions
set_term_title() { echo -e "\033];$1\007"; }
set_term_color() {
echo -e "\033]6;1;bg;red;brightness;$1\a"
echo -e "\033]6;1;bg;green;brightness;$2\a"
echo -e "\033]6;1;bg;blue;brightness;$3\a"
}
# Via https://twitter.com/davecheney/status/1002384377802735617
go_cover() {
local t=$(mktemp -t cover)
go test $COVERFLAGS -coverprofile=$t $@ && go tool cover -func=$t && unlink $t
}
# Open a github/gitlab repo in the browser
GitHub() {
if [ ! -d .git ] && ! git rev-parse --git-dir >/dev/null 2>&1; then
echo "ERROR: This isnt a git directory" && return false
fi
git_url=$(git config --get remote.origin.url)
if [[ $git_url == https://gitlab* ]]; then
url=${git_url%.git}
elif [[ $git_url == https://github* ]]; then
url=${git_url%.git}
elif [[ $git_url == git@gitlab* ]]; then
url=${git_url:4}
url=${url/\:/\/}
url="https://${url%.git}"
elif [[ $git_url == git@github* ]]; then
url=${git_url:4}
url=${url/\:/\/}
url="https://${url%.git}"
elif [[ $git_url == git://github* ]]; then
url=${git_url:4}
url=${url/\:/\/}
url="https://${url%.git}"
else
echo "ERROR: Remote origin is invalid" && return false
fi
open $url
}
alias gitlab=GitHub
alias github=GitHub
# Find a process on a specific port via https://twitter.com/francesc/status/982025296898478080
whoseport() {
lsof -i ":$1" | grep LISTEN
}
alias inkscape="/Applications/Inkscape.app/Contents/Resources/bin/inkscape"
# Highlight tabs in iTerm whenever we SSH into a server - via https://gist.github.com/wadey/1140259
# iTerm2 window/tab color commands
# Requires iTerm2 >= Build 1.0.0.20110804
# http://code.google.com/p/iterm2/wiki/ProprietaryEscapeCodes
tab-color() {
echo -ne "\033]6;1;bg;red;brightness;$1\a"
echo -ne "\033]6;1;bg;green;brightness;$2\a"
echo -ne "\033]6;1;bg;blue;brightness;$3\a"
}
tab-reset() {
echo -ne "\033]6;1;bg;*;default\a"
}
# Change the color of the tab when using SSH
# reset the color after the connection closes
color-ssh() {
if [[ -n "$ITERM_SESSION_ID" ]]; then
trap "tab-reset" INT EXIT
if [[ "$*" =~ "production|ec2-.*compute-1" ]]; then
tab-color 255 0 0
else
tab-color 0 255 0
fi
fi
ssh $*
}
compdef _ssh color-ssh=ssh
alias ssh=color-ssh
go_test() {
go test $* | sed ''/PASS/s//$(printf "\033[32mPASS\033[0m")/'' | sed ''/SKIP/s//$(printf "\033[34mSKIP\033[0m")/'' | sed ''/FAIL/s//$(printf "\033[31mFAIL\033[0m")/'' | sed ''/FAIL/s//$(printf "\033[31mFAIL\033[0m")/'' | GREP_COLOR="01;33" egrep --color=always '\s*[a-zA-Z0-9\-_.]+[:][0-9]+[:]|^'
}
duration() {
ffmpeg -i $1 2>&1 | grep Duration | cut -d ' ' -f 4 | sed s/,//
}
thumbnail() {
ffmpeg -i $1 -vframes 1 -an -s 400x225 -ss $2 $3
}
encode() {
ffmpeg -y -i $1 -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low $2
}
mount_server() {
if ps aux | grep -i sftp | grep -v grep | grep jon@storage.local; then
echo "already mounted..."
else
/usr/local/bin/sshfs -o allow_other,defer_permissions jon@storage.local:/mnt/md0/stuff/ ~/Mount/Storage
fi
}
# Old version, not sure why I don't use this now.
# encode() {
# ffmpeg -i $1 -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low $2
# }
# A way to easily source the default source file. Called bp because when I
# first started using it I used a ~/.bash_profile
alias sourcebp="source ~/.zshrc"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
[
{
"metadata": {
"id": "cb5ffd62-3768-4f92-83a0-ccf84e22ddf4",
"publisherId": "kevinkyang.auto-comment-blocks",
"publisherDisplayName": "kevinkyang"
},
"name": "auto-comment-blocks",
"publisher": "kevinkyang",
"version": "1.0.1"
},
{
"metadata": {
"id": "464f4ac7-af65-4aa9-9907-4ba7fa419085",
"publisherId": "bungcip.better-toml",
"publisherDisplayName": "bungcip"
},
"name": "better-toml",
"publisher": "bungcip",
"version": "0.3.2"
},
{
"metadata": {
"id": "f583eafd-aa0d-4ccb-8f44-d1e610389660",
"publisherId": "CoenraadS.bracket-pair-colorizer",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer",
"publisher": "CoenraadS",
"version": "1.0.61"
},
{
"metadata": {
"id": "2aa040bf-c73a-455d-8946-5c6cc83b8019",
"publisherId": "wmaurer.change-case",
"publisherDisplayName": "wmaurer"
},
"name": "change-case",
"publisher": "wmaurer",
"version": "1.0.0"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.2.7"
},
{
"metadata": {
"id": "f6dbd813-b0a0-42c1-90ea-10dde9d925a7",
"publisherId": "streetsidesoftware.code-spell-checker",
"publisherDisplayName": "streetsidesoftware"
},
"name": "code-spell-checker",
"publisher": "streetsidesoftware",
"version": "1.6.10"
},
{
"metadata": {
"id": "532533c9-a894-4a58-9eee-bbfbe7c06f71",
"publisherId": "mikestead.dotenv",
"publisherDisplayName": "mikestead"
},
"name": "dotenv",
"publisher": "mikestead",
"version": "1.0.1"
},
{
"metadata": {
"id": "081cd2e9-bc51-4ea3-977e-544bed2e33a8",
"publisherId": "bierner.emojisense",
"publisherDisplayName": "bierner"
},
"name": "emojisense",
"publisher": "bierner",
"version": "0.4.1"
},
{
"metadata": {
"id": "828a25d0-b7db-4dbd-8386-35a86c357025",
"publisherId": "fosshaas.fontsize-shortcuts",
"publisherDisplayName": "fosshaas"
},
"name": "fontsize-shortcuts",
"publisher": "fosshaas",
"version": "1.5.0"
},
{
"metadata": {
"id": "3e891cf9-53cb-49a3-8d01-8f0b1f0afb29",
"publisherId": "codezombiech.gitignore",
"publisherDisplayName": "codezombiech"
},
"name": "gitignore",
"publisher": "codezombiech",
"version": "0.6.0"
},
{
"metadata": {
"id": "d6f6cfea-4b6f-41f4-b571-6ad2ab7918da",
"publisherId": "ms-vscode.Go",
"publisherDisplayName": "ms-vscode"
},
"name": "Go",
"publisher": "ms-vscode",
"version": "0.9.2"
},
{
"metadata": {
"id": "3b3d36c0-6af6-4ede-aaba-6f460423ddea",
"publisherId": "casualjim.gotemplate",
"publisherDisplayName": "casualjim"
},
"name": "gotemplate",
"publisher": "casualjim",
"version": "0.3.0"
},
{
"metadata": {
"id": "b2e6b00c-646e-4e31-81e0-201156151842",
"publisherId": "v4run.gotimeformat",
"publisherDisplayName": "v4run"
},
"name": "gotimeformat",
"publisher": "v4run",
"version": "1.0.1"
},
{
"metadata": {
"id": "5db78037-f674-459f-a236-db622c427c5b",
"publisherId": "PKief.material-icon-theme",
"publisherDisplayName": "PKief"
},
"name": "material-icon-theme",
"publisher": "PKief",
"version": "3.7.0"
},
{
"metadata": {
"id": "849ffb6c-e755-4e6e-adc2-c33eaaf0d0fc",
"publisherId": "bradymholt.pgformatter",
"publisherDisplayName": "bradymholt"
},
"name": "pgformatter",
"publisher": "bradymholt",
"version": "1.6.5"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "1.8.1"
},
{
"metadata": {
"id": "21e07abb-b9df-418d-8224-c96f1290ec7f",
"publisherId": "rafaelmaiolla.remote-vscode",
"publisherDisplayName": "rafaelmaiolla"
},
"name": "remote-vscode",
"publisher": "rafaelmaiolla",
"version": "1.1.0"
},
{
"metadata": {
"id": "b24a13f5-4e50-4d9a-ab0a-87f47d9fdfcb",
"publisherId": "stkb.rewrap",
"publisherDisplayName": "stkb"
},
"name": "rewrap",
"publisher": "stkb",
"version": "1.9.1"
},
{
"metadata": {
"id": "5fb19573-2183-4cf2-b53d-0fb869dae7ae",
"publisherId": "foxundermoon.shell-format",
"publisherDisplayName": "foxundermoon"
},
"name": "shell-format",
"publisher": "foxundermoon",
"version": "4.0.4"
},
{
"metadata": {
"id": "529697b9-b343-4b1c-ba2f-f5ef692132d4",
"publisherId": "ms-vscode.sublime-keybindings",
"publisherDisplayName": "ms-vscode"
},
"name": "sublime-keybindings",
"publisher": "ms-vscode",
"version": "4.0.0"
},
{
"metadata": {
"id": "4e44877c-1c8d-4f9c-ba86-1372d0fbeeb1",
"publisherId": "dracula-theme.theme-dracula",
"publisherDisplayName": "dracula-theme"
},
"name": "theme-dracula",
"publisher": "dracula-theme",
"version": "2.17.0"
},
{
"metadata": {
"id": "6298f301-2710-438e-9c5c-45e31ee5a643",
"publisherId": "yomed.theme-dracula-soft",
"publisherDisplayName": "yomed"
},
"name": "theme-dracula-soft",
"publisher": "yomed",
"version": "1.0.4"
},
{
"metadata": {
"id": "9ac1fe12-bae1-41c1-b105-5d2a529f2d5b",
"publisherId": "hoovercj.vscode-dimmer",
"publisherDisplayName": "hoovercj"
},
"name": "vscode-dimmer",
"publisher": "hoovercj",
"version": "2.1.0"
},
{
"metadata": {
"id": "c0c04a3d-f3cd-44ce-a9dd-61ad33504bc7",
"publisherId": "piotrpalarz.vscode-gitignore-generator",
"publisherDisplayName": "piotrpalarz"
},
"name": "vscode-gitignore-generator",
"publisher": "piotrpalarz",
"version": "1.0.1"
},
{
"metadata": {
"id": "92d01ae4-5a2e-4299-990c-7905798fb719",
"publisherId": "jsynowiec.vscode-insertdatestring",
"publisherDisplayName": "jsynowiec"
},
"name": "vscode-insertdatestring",
"publisher": "jsynowiec",
"version": "2.2.3"
},
{
"metadata": {
"id": "4db62a7c-7d70-419c-96d2-6c3a4dc77ea5",
"publisherId": "bradlc.vscode-tailwindcss",
"publisherDisplayName": "bradlc"
},
"name": "vscode-tailwindcss",
"publisher": "bradlc",
"version": "0.1.16"
},
{
"metadata": {
"id": "97a08c5f-6667-4242-a5c5-045dfb6bd4b9",
"publisherId": "wayou.vscode-todo-highlight",
"publisherDisplayName": "wayou"
},
"name": "vscode-todo-highlight",
"publisher": "wayou",
"version": "1.0.4"
}
]
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+shift+e",
"command": "cursorEndSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+a",
"command": "cursorHomeSelect",
"when": "editorTextFocus"
},
{
"key": "cmd+b",
"command": "workbench.action.toggleActivityBarVisibility"
},
{
"key": "alt+cmd+1",
"command": "workbench.action.joinTwoGroups"
},
{
"key": "alt+cmd+3",
"command": "workbench.action.toggleEditorGroupLayout"
},
{
"key": "alt+cmd+0",
"command": "-workbench.action.toggleEditorGroupLayout"
},
{
"key": "alt+cmd+up",
"command": "editor.action.referenceSearch.trigger",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+f12",
"command": "-editor.action.referenceSearch.trigger",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+c",
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
},
{
"key": "cmd+-",
"command": "-workbench.action.zoomOut"
},
{
"key": "cmd+=",
"command": "-workbench.action.zoomIn"
},
{
"key": "cmd+numpad0",
"command": "-workbench.action.zoomReset"
},
{
"key": "tab",
"command": "-acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible"
},
{
"key": "tab",
"command": "-insertSnippet",
"when": "editorTextFocus && hasSnippetCompletions && !editorTabMovesFocus && !inSnippetMode"
},
{
"key": "tab",
"command": "-acceptSelectedSuggestion",
"when": "suggestWidgetVisible && textInputFocus"
},
{
"key": "shift+cmd+space",
"command": "-editor.action.smartSelect.grow",
"when": "editorTextFocus"
}
]
{
"workbench.editor.closeEmptyGroups": false,
"editor.rulers": [
74,
80,
100
],
"go.enableCodeLens": {
"references": false,
"runtest": false
},
"search.location": "panel",
"search.useIgnoreFiles": false,
"workbench.settings.openDefaultSettings": true,
// "window.openFoldersInNewWindow": "default",
"workbench.editor.enablePreview": false,
"workbench.activityBar.visible": false,
"editor.fontSize": 19,
"editor.fontFamily": "Meslo LGSDZ Nerd Font, Menlo, Monaco, 'Courier New', monospace",
"editor.wordWrap": "bounded",
"editor.tabSize": 2,
"editor.trimAutoWhitespace": true,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/node_modules": true
},
"editor.dragAndDrop": false,
"[markdown]": {
"editor.formatOnPaste": false,
"editor.glyphMargin": false,
"editor.wordWrap": "bounded",
"editor.tabSize": 2
},
"editor.renderLineHighlight": "all",
// Go specific settings
// Expands funcs into Println(a ...interface{})
"go.useCodeSnippetsOnFunctionSuggest": true,
"go.addTags": {
"promptForTags": true
},
// Whether or not to show types in autocompletes
// "go.useCodeSnippetsOnFunctionSuggestWithoutType": true,
// Use sourcegraph Go language server
// "go.useLanguageServer": true,
// https://marketplace.visualstudio.com/items?itemName=fosshaas.fontsize-shortcuts
"fontshortcuts.defaultFontSize": 20,
"fontshortcuts.defaultTerminalFontSize": 20,
"fontshortcuts.step": 1,
"sublimeTextKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.minimap.enabled": false,
// "editor.snippetSuggestions": "top",
"window.zoomLevel": 2,
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "untitled",
"sync.gist": "9790a444b4baf8f22ede3e3fe8bca3a9",
"sync.lastUpload": "2018-06-15T19:10:53.885Z",
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.lastDownload": "",
"sync.forceDownload": false,
"sync.anonymousGist": false,
"sync.host": "",
"sync.pathPrefix": "",
"sync.quietSync": false,
"sync.askGistName": false,
"gitlens.hovers.currentLine.over": "line",
"workbench.colorTheme": "Dracula",
"workbench.sideBar.location": "left",
"editor.renderControlCharacters": false,
"editor.tabCompletion": false,
"editor.lineHeight": 0,
"files.insertFinalNewline": true,
"editor.scrollBeyondLastLine": true,
"files.trimTrailingWhitespace": true,
"editor.renderLineHighlight": "all",
"workbench.colorCustomizations": {
"editor.lineHighlightBackground": "#44475a"
},
"cSpell.userWords": [
"oauth",
"postgres",
"screencasts",
"unexported"
],
// Enable/disable autoclosing of HTML tags.
"html.autoClosingTags": false,
"files.eol": "\n",
"sync.removeExtensions": true,
"sync.syncExtensions": true,
//-------- Remote VSCode configuration --------
// Port number to use for connection.
"remote.port": 52698,
// Launch the server on start up.
"remote.onstartup": true,
// Address to listen on.
"remote.host": "127.0.0.1",
// If set to true, error for remote.port already in use won't be shown anymore.
"remote.dontShowPortAlreadyInUseError": true,
"material-icon-theme.folders.color": "#90a4ae",
"material-icon-theme.activeIconPack": "react_redux",
// The gohtml setting below doesn't work :(
// "[gohtml]": {
// "comments": {
// "blockComment": [ "<!--", "-->" ]
// },
// "blockComment": [ "<!--", "-->" ]
// },
// Date format to be used - RFC1123Z
"insertDateString.format": "DDD, DD MMM YYYY hh:mm:ss ZZZZ",
"go.docsTool": "gogetdoc",
"material-icon-theme.files.associations": {
"*.gohtml": "yaml",
},
"dimmer.when": "selection",
"dimmer.enabled": true,
"files.associations": {
"*.gohtml": "gohtml"
},
"editor.hover.delay": 500,
"editor.hover.enabled": false
}
This file is for my reference. You probably won't use these but maybe some will inspire you.
* All warp points:
gopath -> ~/go/src
go -> ~/go/src
go/github -> ~/go/src/github.com
go/jon -> ~/go/src/github.com/joncalhoun
go/swag -> ~/go/src/github.com/joncalhoun/swag
go/twg -> ~/go/src/TestWithGo.com
mnt/twg -> ~/Mount/Storage/Jon/TestWithGo.com
mnt/storage -> ~/Mount/Storage/Jon
go/jon/twg -> ~/go/src/github.com/joncalhoun/twg
8tb/twg -> /Volumes/8TB Sierra Storage/TestWithGo.com
go/gitlab/jon -> ~/go/src/gitlab.com/joncalhoun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment