Skip to content

amarinkovic/.dotfiles

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:

  • Allacrity: stow alacritty
  • 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

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

sudo pacman -S ttf-hack-nerd

tmux shortcuts

Some common tmux shortcuts, so that I don't forget them. Current prefix is <Ctrl-z>.

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

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>
find file by name:      <C-p>

grep files:             <leader> fg
format file with:       <leader> gf
metals commands:        <leader> gm

go to definition:       gd
go to implementation:   go

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

next word:              w

first line of file:     gg
last line of file:      G
begining of file:       [[
end of file:            ]]

When in normal mode:

delete between "":      di"
delete between {}:      di{
delete between ():      di(
delete inside xml tag:  dit

Releases

No releases published

Packages

No packages published