1
Fork 0
My config files for various things
Find a file
2019-12-03 13:17:53 -05:00
atom atom config 2018-07-01 22:42:54 -04:00
bash add bash config 2018-07-18 09:58:35 -04:00
docker reorganize 2018-11-14 15:15:56 -05:00
firefox firefox: new setting for suppressing warning on about:config 2019-12-03 13:17:53 -05:00
git git: add clean-pr 2019-10-12 08:13:42 -04:00
node pnpm: add save=false for pnpm v4.2.2 2019-11-18 22:20:51 -05:00
tmux reorganize 2018-11-14 15:15:56 -05:00
vscode vscode: render whitespace 2019-07-26 14:18:28 -04:00
windows config: overhaul 2018-11-14 15:18:13 -05:00
wsltty wsltty: add config 2018-11-13 20:14:09 -05:00
.gitignore firefox: rework config mechanism again 2019-09-11 12:59:17 -04:00
2path.sh 2path: fix when target is a symlink to something with a different name 2019-12-01 19:07:48 -05:00
config.sh nodejs: adjust how binaries are added to the path 2019-12-01 19:21:32 -05:00
README.md readme adjustments 2019-11-18 23:27:10 -05:00
squashfs2tar.sh squashfs2tar: use fakeroot 2018-11-03 10:15:08 -04:00
wsl.cmd wsl: terminate after configuring (for 1903) 2019-05-29 23:56:04 -04:00

config

My config files for various things. Use config.sh to automate the setup of several of them. Use 2path.sh to symlink an executable into ~/bin/.

Things that are not checked in but which should live in this directory:

  • firefox/configs/ - files whose names are +-separated filenames from firefox/ - these will be constructed by concatenation from the base files, and will be symlinked to from various profiles' user.js files
  • firefox/*.proxy - proxy auto-config files - these too can be referred to in the above firefox/configs/ files, without the .proxy extension
  • gcloud/ - Google Cloud SDK configuration files
  • git/.git-credentials - plaintext Git credential store
  • git/github_token - GitHub Personal Access Token with read access to repos
  • node/.npmrc - npm credentials, config, etc.
  • ssh/ - SSH keys, config, etc.

WSL setup

Use wsl.cmd to set up a new WSL installation. Requires LxRunOffline. Run without arguments for details.

Use squashfs2tar.sh to convert squashfs files from e.g. https://cloud-images.ubuntu.com/ into tarballs that LxRunOffline can use. (Requires fakeroot.)

Git aliases

  • git clean-branches - delete local branches which track deleted remote branches
  • git clean-config - unset various local config values, so global config will be used
  • git clean-dates - set commit dates of all commits in the given range to their authoring dates
  • git clean-modes - reset all file modes to to those in the repository
  • git clean-original - delete all refs/original/ refs left by git filter-branch
  • git clean-pr - delete all pr/ branches created by git cpr
  • get clean-user - set author and committer of all commits in the given range to the currently configured identity
  • git cpr - checkout a PR from GitHub by id, and set up the local branch to track the appropriate branch on the appropriate fork
  • git index-list-skip - list all files that have had --skip-worktree set on them
  • git index-skip - set --skip-worktree on a given file
  • git index-unskip - set --no-skip-worktree on a given file
  • git npm-add - stage precisely the files that would be included in an npm package
  • git track - set current branch to track given remote and branch, defaulting to same branch name
  • git turbo-gc - turbo garbage collect
  • git user-* - set user.email and user.name as appropriate

Node/npm scripts

  • npma.sh - find the given binaries searching upwards through node_modules and output aliases for them, suitable for >> ~/.profile
  • npmg.sh - create a commit for new version (if there are uncommitted changed), and create and tag a dangling commit from HEAD but not on the current branch which contains all of the files npm publish would
  • npml.sh - find the node_modules where the given dependencies are used, search up further for directories defining them, and create symlinks

tmux keybindings

The included .tmux.conf makes the following changes/additions to the default tmux keybindings:

  • The prefix key is now ctrl-a (and ctrl-a ctrl-a is used to send ctrl-a to the console)
  • Switching windows is done with ctrl-alt-left/right (no prefix key)
  • Switching panes is done with alt-left/right/up/down (no prefix key)
  • Splitting panes is done with ctrl-a | (horizontal) and ctrl-a - (vertical)
  • Reloading ~/.tmux.conf is done with ctrl-a shift-r

Mouse control is also enabled, and the terminal mode is set to screen-256color.

Docker Windows/WSL relay

Install Docker for Windows. More details are available here.

Use the configuration script to install the Docker CLI, set up docker-relay, and add your user to the docker group.

Run sudo docker-relay to start the relay.