GithubHelp home page GithubHelp logo

Dotfiles for Peter Bakkum

https://github.com/bakks/bakks

Configured for Dvorak keyboard layout.

Current setup:

  • Terminal: kitty
  • Shell: zsh
  • Window manager: tmux
  • Editor: neovim
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Brew packages
# node@16 is necessary because Github Copilot vim plugin currently requires 12.x-17.x
brew install node@16 npm tmux nvim fzf go yarn git gh htop reattach-to-user-namespace entr coreutils wget kitty grc
brew install homebrew/cask-fonts/font-hack-nerd-font
brew install bakks/bakks/poptop bakks/bakks/butterfish
go install github.com/boyter/[email protected]

# npm packages
npm install -g typescript typescript-language-server pyright prettier

gh auth login

# Populate the homedir with this repo's contents
cd ~
gh repo clone bakks/bakks
rsync -a bakks/ ./
rm -rf bakks/

To do

  • Moving cursor left/right when in the command mode (e.g. activate by renaming cR)
  • Move to next or previous LSP error
  • Add karabiner config info here

Keyboard Cheat Sheet

kitty

C-, : Open kitty config

C-⌘-, : Reload kitty config

⌥-⌘-, : Show current kitty config

zsh

C-t : Previous history item

C-n : Next history item

C-h : Cursor left

C-s : Cursor right

tmux

Normal Mode

C-b : Next pane

C-x : Previous pane

C-g : New pane split horizontally

C-d g : New pane split vertically

C-f : Next pane layout

C-l : Kill current pane

C-d h : Resize pane left

C-d t : Resize pane down

C-d n : Resize pane up

C-d s : Resize pane right

C-d d : Swap pane forward

C-d D : Swap pane backward

C-d r : Reload tmux configuration

C-u : Enter copy mode

Copy mode

Allows you to manipulate the text of a tmux pane.

H : Cursor left

T : Cursor down

N : Cursor up

S : Cursor right

t : Scroll down

n : Scroll up

C-t : Page down

C-n : Page up

V / C-v : Select text

y / Y : Copy selected text

neovim

Normal mode

h : Cursor left

t : Cursor down

n : Cursor up

s : Cursor left

C-h : Cursor left x12

C-t : Cursor down x8

C-n : Cursor up x8

C-s : Cursor right x12

j : Jump to top of file

q : Jump to bottom of file

u : Un-do

U : Re-do

. : Repeat last action

dd : Delete current line

i : Enter insert mode

I : Enter insert mode at beginning of line

k : Write file

r : Insert a single character at current location

C-r : Reload file

; : Reload vim config

o : Add newline and enter insert mode

e : Delete newline at end of current line

m : Delete selected text and enter insert mode

C-a : Jump to beginning of line

C-e : Jump to end of line

T : Next search result

N : Previous search result

- : Delete trailing whitespace throughout file

= : Grep in local directory

C-p : Open fzf file finder

P : Open file tree (nvim-tree.lua)

zR : Unfold all

[0-9]B : Go to numbered tab

B : Next tab

M : Previous tab

Q : Quit file

LSP / Autocompletion

cd : Go to definiton

cD : Go to type definition

ck : Show definition in hover window

ci : Go to implementation

cr : Show references

cR : Rename current symbol

tab : Select next autocompletion result

nvim-tree

o : Open selected file

O : Open file in new tab

Tab : Preview file

t / C-t : Next file

C-n : Go to parent

s : Open file with system default program

R : Refresh file tree

a : New file

r : Rename

y : Copy name

Y : Copy path

gy : Copy absolute path

Peter Bakkum's Projects

antlr4 icon antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.

cast icon cast

execute remote commands on groups of servers

cast-go icon cast-go

Execute remote commands on groups of machines

coq_nvim icon coq_nvim

Fast as FUCK nvim completion. SQLite, concurrent scheduler, hundreds of hours of optimization.

drillsp icon drillsp

Read code files from the command line with LSP

fakehn icon fakehn

Markov chain generator for Hacker News headlines

go-gpt3 icon go-gpt3

An OpenAI GPT-3 API client enabling Go/Golang programs to interact with the gpt3 APIs.

hhvm icon hhvm

A virtual machine designed for executing programs written in Hack and PHP.

livegrep icon livegrep

Interactively grep source code. Source for http://livegrep.com/

mongo-proxy icon mongo-proxy

A gem for proxying MongoDB at the wire-protocol level.

readup icon readup

Automatically update Markdown files with command examples

sphyraena icon sphyraena

Accelerating Database Operations on a GPU with CUDA

tako icon tako

Parse arbitrary code files with tree-sitter

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.