Skip to content

Instantly share code, notes, and snippets.

@rickMcGavin
Last active March 24, 2022 15:10
Show Gist options
  • Save rickMcGavin/9f370aac0c060f16d95ec44dfdeb54b3 to your computer and use it in GitHub Desktop.
Save rickMcGavin/9f370aac0c060f16d95ec44dfdeb54b3 to your computer and use it in GitHub Desktop.
Dotfiles and Configs
# .profile
# Pretty minimal at the moment.
# Aliases
# listing
alias l='ls -al'
# git
alias g='git '
alias gs='git status'
alias gd='git diff'
# For those new git branches
alias copyNewBranch="git push 2>&1 | grep 'git push' | sed 's/^ *//g' | tr -d '\n' | pbcopy"
# .zshrc
# Replace USER_NAME below
source /Users/USER_NAME/.profile
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
{
"editor.fontFamily": "'Fira Code', 'JetBrains Mono', 'Victor Mono', Menlo, Monaco",
"editor.fontSize": 16,
"editor.tabSize": 2,
"editor.cursorWidth": 4,
"editor.fontLigatures": true,
// Emmet preferences
// don't instantly pop for trigger characters
"editor.suggestOnTriggerCharacters": false,
// How long before quick suggestions start to show up
"editor.quickSuggestionsDelay": 250, // milliseconds
"editor.wordWrap": "on",
"editor.bracketPairColorization.enabled": true,
"emmet.triggerExpansionOnTab": true,
"emmet.preferences": {
"filter.commentAfter": "<!-- /[#ID][.CLASS] -->"
},
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"liquid": "html"
},
"explorer.compactFolders": false,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false
// "suppressResultsExplorerNotice": false,
// "suppressShowKeyBindingsNotice": true,
// "suppressUpdateNotice": false,
// "suppressWelcomeNotice": true
},
"gitlens.keymap": "alternate",
// Eslint / Prettier required setting for auto save.
"editor.formatOnSave": true,
// "eslint.autoFixOnSave": true,
// Show eslint in bottom right corner of editor
"eslint.alwaysShowStatus": true,
"gitlens.views.fileHistory.enabled": true,
"editor.renderWhitespace": "all",
"files.associations": {
// "*.ejs": "html",
// "*.liquid": "liquid"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[javascriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"turboConsoleLog": {
"addSemicolonInTheEnd": true,
"quote": "'"
},
"go.formatTool": "goimports",
"workbench.colorTheme": "Dracula Soft",
"editor.accessibilitySupport": "off",
"editor.linkedEditing": true,
"git.autofetch": true,
"security.workspace.trust.untrustedFiles": "open",
"go.toolsManagement.autoUpdate": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"diffEditor.ignoreTrimWhitespace": false,
"eslint.format.enable": true,
"typescript.format.enable": false,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.minimap.enabled": false,
"window.zoomLevel": -1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment