Skip to content

Latest commit

 

History

502 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.dotfiles

First off, include some common aliases and functions.

echo "source ~/.dotfiles/.myrc" >> ~/.zshrc

Everything else in this repo is laid out to be used with GNU Stow. Following tools can be configured using stow command:

  • Ghostty: stow ghostty
  • Git: stow git
  • Neovim: stow nvim
  • Tmux: stow tmux

tmux setup

After stowing, run the following commands for tmux plugin manager setup. From your home folder execute:

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

Then inside tmux, press <prefix> + I to install plugins defined in .tmux.conf file.

Also make sure to have a proper font installed, for example if you are on mac:

brew tap homebrew/cask-fonts
brew install --cask font-hack-nerd-font

You can use FiraCode by installing

brew install --cask font-fira-code-nerd-font # macOS
sudo pacman -S ttf-firacode-nerd             # arch btw

If you use Arch by the way, you can install the fonts from here, like this:

sudo pacman -S ttf-hack-nerd

tmux troubleshooting

In case you have problems with config changes being applied, i.e. setting a different theme, try deleting the following folder, and then reinstalling the plugins with <prefix> + I

rm -rf ~/.tmux/plugins/tmux 

tmux shortcuts

Some common tmux shortcuts, so that I don't forget them. Current prefix is ` (backtick)

pane zoom:                  <prefix> + z

pane resize up:             <prefix> + <M-up>
pane resize down:           <prefix> + <M-down>
pane resize left:           <prefix> + <M-left>
pane resize right:          <prefix> + <M-right>

move between panes:         <prefix> + arrows

sync panes ON:              <prefix> + e
sync panes OFF:             <prefix> + E

pane split verticaly:       <prefix> + v
pane split horizontally:    <prefix> + h

list open sessions:         <prefix> + s
list key bindings:          <prefix> + ?

enter copy mode:            <prefix> + [
paste the most recent:      <prefix> + ]

rename window:              <prefix> + ,
rename session:             <prefix> + $

reload tmux config:         <prefix> + r
source tmux config:         <prefix> + R

nvim shortcuts

Some common nvim shortcuts, so that I don't forget them

<leader> key:   SPACE
<C> key:        CTRL
<M> key:        Option/Alt
<S> key:        Shift

show treeview:          <C-n>
show hidden:            <S-h>
find file by name:      <C-p>

lazygit:                <leader> lg
grep files:             <leader> fg

run terminal command:   :term <command>

feed to quickfix:       <C-q>

show  quickfix list:    <leader>qf
close quickfix list:    <leader>qq

next quickfix item:     ]q
prev quickfix item:     [q

buffer format:          <leader> bf

go to definition:       gd
go to implementation:   gI
show docs:              <S> k

next diagnostic         ]d
previous diagostic      [d

go back:                <C-o>
go forward:             <C-i>

decrease pane width     -
increase pane width     =
decrease pane height    _
increase pane height    +

next word:              w
previous word:          b
end of word:            e

find char:              f
till char:              t

substitute word:        <leader> s
comment out:            <leader> /

first line of file:     gg
last line of file:      G
go to line X            X + G

next current word:      *
prev current word:      #

increment number:       <C> + a
decrement number:       <C> + x

join lines:             <S> + j
repeat last action:     .

About

Nothing to see here.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages