# mac dev user setup ## system preferences * **trackpad**: Tap to click on * **zoom**: Use keyboard shortcut to zoom * **sound**: Play user interface sound off * **browser**: Generate > default browser: chrome * **keyboard**: Use F1 - F12 as function keys * **dock**: auto hide menu + auto hide doc * **spectacle**: auto launch left,right, full screeen ## terminal * **terminal**: Font 18px, default: pro * allow access to file system ### oh my zsh ```bash= https://ohmyz.sh/#install ``` ### vscode * download vscode move to `/Application` ### git config ``` [user] name = Paul Krisadaolarn email = pauly.k@gmail.com [alias] co = checkout cob = checkout -b coo = !git fetch && git checkout br = branch brd = branch -d brD = branch -D merged = branch --merged st = status aa = add -A . cm = commit -m aacm = !git add -A . && git commit -m cp = cherry-pick amend = commit --amend -m lg = log --oneline glog = git log --oneline --decorate --graph --all [core] editor = nano [init] default = main defaultBranch = main ``` paste ```bash= cd ~ pbpaste > .gitconfig ``` * download install [node](https://nodejs.org/en/download/) ### Add ssh key to various services * Digital ocean * Gihub, Btibucket ```bash= ssh-keygen cd ~/.ssh cat id_rsa.pub | pbcopy ``` ## dotnet Omnisharp ```json= { "FormattingOptions": { "EnableEditorConfigSupport": false, "NewLine": "\n", "UseTabs": false, "TabSize": 4, "IndentationSize": 4, "SpacingAfterMethodDeclarationName": false, "SpaceWithinMethodDeclarationParenthesis": false, "SpaceBetweenEmptyMethodDeclarationParentheses": false, "SpaceAfterMethodCallName": false, "SpaceWithinMethodCallParentheses": false, "SpaceBetweenEmptyMethodCallParentheses": false, "SpaceAfterControlFlowStatementKeyword": true, "SpaceWithinExpressionParentheses": false, "SpaceWithinCastParentheses": false, "SpaceWithinOtherParentheses": false, "SpaceAfterCast": false, "SpacesIgnoreAroundVariableDeclaration": false, "SpaceBeforeOpenSquareBracket": false, "SpaceBetweenEmptySquareBrackets": false, "SpaceWithinSquareBrackets": false, "SpaceAfterColonInBaseTypeDeclaration": true, "SpaceAfterComma": true, "SpaceAfterDot": false, "SpaceAfterSemicolonsInForStatement": true, "SpaceBeforeColonInBaseTypeDeclaration": true, "SpaceBeforeComma": false, "SpaceBeforeDot": false, "SpaceBeforeSemicolonsInForStatement": false, "SpacingAroundBinaryOperator": "single", "IndentBraces": false, "IndentBlock": true, "IndentSwitchSection": true, "IndentSwitchCaseSection": true, "IndentSwitchCaseSectionWhenBlock": true, "LabelPositioning": "oneLess", "WrappingPreserveSingleLine": true, "WrappingKeepStatementsOnSingleLine": true, "NewLinesForBracesInTypes": false, "NewLinesForBracesInMethods": false, "NewLinesForBracesInProperties": false, "NewLinesForBracesInAccessors": false, "NewLinesForBracesInAnonymousMethods": false, "NewLinesForBracesInControlBlocks": false, "NewLinesForBracesInAnonymousTypes": false, "NewLinesForBracesInObjectCollectionArrayInitializers": false, "NewLinesForBracesInLambdaExpressionBody": false, "NewLineForElse": false, "NewLineForCatch": false, "NewLineForFinally": false, "NewLineForMembersInObjectInit": false, "NewLineForMembersInAnonymousTypes": false, "NewLineForClausesInQuery": false } } ```