Skip to content

EmilRehnberg/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emil4dinner's dotfiles

set-up history cache dir

NOTE: with this history can't be save >.<

mkdir -p $HOME/.cache/sh/

Dependencies

  • git
  • rcm dotfile manager

Structure

use rcm directories for certain contexts

  • china / sweden for country specific dotfiles
  • macOS / Ubuntu / WSL for OS specific dotfiles

tags mostly for language/utility scoping

hosts for different hosts

RCRC setup

  • DOTFILES_DIRS: order-significant(!) OS and region
  • EXCLUDES: all dirs/files that you don't want to symlink (tags and hosts are excluded by default)
  • SYMLINK_DIRS: dirs/files to symlink e.g. git submodules
  • TAGS: desired tags
  • UNDOTTED: files to symlink but w/o dot prefix e.g. bin

Installation

(0. Backup current dotfiles to keep -- optional)

1. Clone dotfile repo into ~/.dotfiles

git clone --recursive https://github.com/emilrehnberg/dotfiles $HOME/.dotfiles

2. Run rcup

RCRC=~/.dotfiles/${HOSTNAME}/rcrc rcup

RCRC variable is needed if no .rcrc is available in the home directory

3. Download git submodules

git submodules init
git submodules update

Installation

See OS specific README

SSH

mkdir -p $HOME/.ssh
chmod 700 $HOME/.ssh
ssh-keygen -t rsa
ssh-add ~/.ssh/id_rsa
  • $HOME/.ssh/id_rsa – contains your private key.
  • $HOME/.ssh/id_rsa.pub – contain your public key.
  • to push with SSH, make sure the remote set (.git/config) is using the SSH link (e.g. git@github.com:EmilRehnberg/dotfiles.git)

vim sessions

Stored under sessions.

Saved vim sessions for different situations, configs, projects or whatever.

vi linting & fixing

used for nvim

pip install pynvim

text

Under contruction/investigation.

js

ATM standardjs is setup. I like the style - Seattle style (no semicolons), has fixing also, less config. benri ha benri da.

jshint seems more popular, using semicolons etc. jshint will require .jshintrc with setups etc. So maybe I'll use that if I have to. Doesn't provide fixing, just linting.

python

Under investigation.

R

use lintr and styler.

Anki

visit their download page.

vimwiki

used for notes.

  1. clone the notes repo (use wiki in the url).
  2. set-up a host-specific vimwiki config with settings.

To do

Think about installation instructions/scripts - where should they live?

  • explain other installations for a new installation
    • utilities: Dropbox, Google Drive
    • misc: spotify, browsers, tex

About

emil4dinner's dotfiles repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published