GithubHelp home page GithubHelp logo

dotfiles's Introduction

dotfiles

Update with sh update.sh Make sure your user is named "tobbe"

Install

  • homebrew
    • git
    • tmux
    • jq
    • z
    • bat
    • tmuxinator
    • ripgrep
    • fzf
    • pnpm
    • bat
    • fastlane
    • gh
    • httpie
  • volta (node)
    • install node with volta https://volta.sh
    • install global npm packages with volta install <package>
    • list global packages with volta list
    • packages to install:
      • @antfu/ni
      • vercel
  • firefox
    • see settings below
  • notion
  • dotfiles
  • alfred
    • alfred-settings
  • sf mono
  • iterm2
  • https://shottr.cc/

git

  1. Create two ssh keys: work and personal (see github docs)
  2. Create ~/.gitconfig-personal with:
[user]
    email = [email protected]
[core]
    sshCommand = "ssh -i  ~/.ssh/personal"

and ~/.gitconfig-work with:

[user]
    email = [email protected]
[core]
    sshCommand = "ssh -i  ~/.ssh/work"
  1. upload ssh .pub files to github etc
  2. update .gitconfig with folders to use with each ssh-key/account

Mac

  • Require password after screen saver begins or display turned off (includes afk=lock screen) to immediatly
  • keyboard > keyboard shortcuts > "Move focus to next window" set to cmd+<
  • keyboard > Delay until repeat = short(est)

VSCode

VSCode settings

  • Typescript Tsdk: ./node_modules/typescript/lib

Extensions:

eslint+prettier

alt 1 (eslint handles all)

  • disable prettier plugin
  • Default formatter: ESLint
  • Search settings for “format:enable”. Disable ALL except ESLint. ESLint should handle it.
  • requires:
    • npm pack: eslint-plugin-prettier
    • npm pack: prettier
    • eslintConfig extend: plugin:prettier/recommended

alt 2 (prettier vscode plugin handles prettier)

  • enable prettier plugin
  • Default formatter: prettier
  • setting: prettier require config
  • Search settings for “format:enable”. Disable ALL. Prettier plugin will handle it.
  • DOES NOT require:
    • npm pack: eslint-plugin-prettier
    • npm pack: prettier
    • eslintConfig extend: plugin:prettier/recommended => REPLACE with 'prettier' from eslint-config-prettier

Firefox

  • Strict privacy
  • Delete cookies and data when firefox is closed
    • exceptions: excalidraw.com, stackoverflow.com, github.com
  • in about:config
    • closeWindowWithLastTab false
    • browser.urlbar.filter.javascript false (to be able to search booklets, "form fill" for example. Then use "ff" in address bar (configured shortcut on the bookmark))

Addons

iterm keybindings

  • Backup iterm Settings to com.googlecode.iterm2.plist (in dotfiles dir). Setup in General-tab => Preferences.
  • Backup iterm Profile to iterm-default-profile.json (in dotfiles dir). Must save manually after changes. Set Presets.. to "Natural text editing" under Profile=>Keys AND set these of these in pref=>keys (selection ex): ⇧+⌥+← | move start of sel back by word | select to the left by word
    `⇧+⌥+→ | move end of sel forward by word | select to the right by word``

todo

install node with nvm

NOPE, use if you update node with nvm, migrate global packages: https://github.com/creationix/nvm#migrating-global-packages-while-installing

set shells (logout+login after change)

zsh (default on mac): chsh -s $(which zsh) or if thats not working: chsh -s /bin/zsh fish: chsh -s /usr/local/bin/fish

temporary swich shell

in terminal, type: zsh fish

good stuff

https://github.com/mathiasbynens/dotfiles https://evanhahn.com/a-decade-of-dotfiles/

Osascript

open -a 'Firefox.app' 'https://tobb.be/dashboard' && osascript -e 'delay 0.08' -e 'tell application \"System Events\"' -e 'keystroke \"l\" using {command down}' -e 'end tell'

{
	"description": "show terminal",
	"manipulators": [
		{
			"from": {
				"key_code": "non_us_backslash",
				"modifiers": {
					"mandatory": ["left_command"]
				}
			},
			"to": [
				{
					"halt": true,
					"key_code": "t",
					"modifiers": [
						"left_shift",
						"left_control",
						"left_command",
						"left_option"
					]
				}
			],
			"type": "basic"
		}
	]
},

dotfiles's People

Contributors

tobbbe avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.