dotfiles ⛰
- list of software i use
- globally installed npm packages
- neovim
- tmux config
- alacritty
- gitconfig
- fish configuration
- aliases, functions
- starship
- espanso
- zathura
- ripgrep
Homebrew needs to be setup for scripts to work.
This can be done by adding the following to ~/.profile
:
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
Clone dotfiles to home directory
git clone https://github.com/namjul/dotfiles
cd and run make
GIT_AUTHOR_NAME="name"
GIT_AUTHOR_EMAIL="email"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
# Set the credentials (modifies ~/.gitconfig)
git config --global user.name "$GIT_AUTHOR_NAME"
git config --global user.email "$GIT_AUTHOR_EMAIL"
Mapping | Functionality |
---|---|
Ctrl-o |
fuzzy file and open |
Ctrl-f |
fuzzy file |
Alt-c |
fuzzy folders and cs |
Alt-o |
open lf file explorer |
z |
cd using magic |
db |
cd into ~/Dropbox |
dd |
cd into ~/.dotfiles |
dc |
cd into ~/code |
- |
cd into previous location |
.. |
cd .. |
... |
cd ../.. |
.... |
cd ../../.. |
Legend
<leader>
== space
C
== ctrl key
Mapping | Functionality | Replaced Mapping |
---|---|---|
a | add spot | |
s | list spots | |
j | navigation to spot 1 | |
k | navigation to spot 2 | |
l | navigation to spot 3 | |
ö | navigation to spot 4 | |
f | fuzzy find files | |
b | fuzzy find buffer | |
c | fuzzy find commands | |
d | dendron lookup | |
dendron search | ||
open daily note | ||
y | dotfiles fuzzy find files | |
gb | browser git branches | |
[d | previous diagnostic | |
]d | next diagnostic | |
gf | go to file | |
gd | go to definition (lsp) | |
gr | show references (lsp) | |
- | open file explorer | |
m | maximaize window | |
h | move to left pane | |
l | move to right pane | |
k | move to top pane | |
j | move to bottom pane |
Mapping | Functionality | Replaced Mapping |
---|---|---|
/ | local search | |
/ | global search | |
* | cursor word search | |
e | search replace | |
rn | rename (lsp) | |
clear search | ||
K | move line up | |
J | move line down |
Mapping | Functionality | Replaced Mapping |
---|---|---|
<leader>hb |
git blame | |
<leader>hs |
state hunk | :Gitsigns stage_hunk |
<leader>hu |
undo state hunk | :Gitsigns undo_stage_hunk |
<leader>hr |
reset hunk | :Gitsigns reset_hunk |
<leader>hR |
reset buffer | :Gitsigns reset_buffer |
<leader>hp |
preview hunk | :Gitsigns preview_hunk |
<leader>hS |
state buffer | :Gitsigns state_buffer |
<leader>hU |
reset buffer index | :Gitsigns reset_buffer_index |
<leader>gs |
git status | :Git |
<leader>gc |
git commit | :G commit -v |
<leader>ga |
git add -p | :Git add -p |
<leader>gm |
git commit --amend | :Gcommit --amend |
<leader>gp |
git push | :Gpush |
<leader>gd |
git diff | :Gdiff |
<leader>gw |
write and git add | :Gwrite |
<leader>gbr |
open github | :GBrowse |
Mapping | Functionality | Replaced Mapping |
---|---|---|
<leader>vp |
Prompt for a command to run | :VimuxPromptCommand |
<leader>vl |
Run last command executed by VimuxRunCommand | :VimuxRunLastCommand |
<leader>vi |
Inspect runner pane | :VimuxInspectRunner |
<leader>vz |
" Zoom the tmux runner pane | :VimuxZoomRunner |
Mapping | Functionality | Replaced Mapping |
---|---|---|
<leader>r |
reload nvim config | |
<leader>x |
quick save | |
<leader>w |
quick write | |
<leader>q |
quick quit | |
ff |
format | |
<leader>jk |
escape | Esc |
<leader>a |
Select all | ggVG |
yob |
toogle background | |
w!! |
write in sudo mode | |
<C-L> |
clear search highlight | :nohlsearch |
H |
jump high | Default |
M |
jump middle | Default |
L |
jump low | Default |
<leader>2 |
execute current file | |
<leader>z |
zen mode |