Skip to content

bdhammel/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

213 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles set up

Set up at new location

1. Install dotfiles (symlinks)

cd ~/dotfiles && ./install.sh

2. Source zsh config — add to ~/.zshrc if not already present:

if [ -f ~/.zsh_aliases ]; then
    source ~/.zsh_aliases
fi

3. Install brew packages

xargs brew install < ~/dotfiles/brew_requirements.txt

import individual file

$ cd ~
$ ln -s dotfiles/vim .vim

Setting up Git

https://help.github.com/articles/checking-for-existing-ssh-keys/

See http://stackoverflow.com/questions/7773181/git-keeps-prompting-me-for-password

Make sure you are cloning your repos using ssh:

ssh://git@github.com/username/repo.git If you use https or git, you will always be asked for username/password:

https://github.com/username/repo.git git://github.com/username/repo.git

Mac Setup

brew

install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Mapping caps -> esc

system preferences > keyboard > keyboard > modifier keys

Misc info

Ubuntu

dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:escape']"

Very basic VIM

Download the very basic vimrc for using on other peoples computer

wget https://raw.githubusercontent.com/bdhammel/dotfiles/master/basic_vimrc -O ~/.vimrc

VIM buffer reference

Switch between buffers :bn and :bp

list buffers :ls

open new file in buffer :e <filename>

delete buffer :db

Splits

horizontal split :sp <filename>

vertical split :vs <filename>

Use Neovim as a git difftool Just paste this into your ~/.gitconfig

[difftool]
    prompt = true
[diff]
    tool = nvimdiff
[difftool "nvimdiff"]
    cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
git maintenance start

https://blog.gitbutler.com/git-tips-2-new-stuff-in-git/

Copy Pase

https://github.com/tmux/tmux/wiki/Clipboard#quick-summary

Installing packages w/o sudo

You can install into two different user bin locations

  • /usr/bin
  • ~/bin

ensure /usr/bin is exported into PATH

   cd /usr/bin
   wget <url to binary>
   tar -zxvf download-pkg
   mv dowloaded-pkg/app app
   # or
   ln -s nvim.appimage nvim

Packages to install

To know which arch to download, run name -m • If output is x86_64, linux_amd64 is correct. • If aarch64 or similar, use linux_arm64.

Quick setup

wget https://raw.githubusercontent.com/bdhammel/dotfiles/master/quick_setup.sh | bash

About

Personal dotfiles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors