Skip to content

This repository contains some automation scripts to setup things on my pc

Notifications You must be signed in to change notification settings

RodrigoCMoraes/dotfiles

Repository files navigation

pc-setup

This repository contains my Vim/Tmux setup.

Demo

Try it out with Docker!!!

# Build docker image
docker build -t pc-setup .

# Run container to try this setup
docker run --rm -it pc-setup

# Use this container as code editor
docker run -it --privileged=true -v PATH_TO_SOURCE_CODE:/app pc-setup /bin/bash

Install

git clone https://github.com/rodrigocmoraes/pc-setup.git
cd pc-setup
sudo chmod +x install.sh
sudo ./install.sh
source ~/.bashrc

Shortcuts

All others commands no cited here remain default.

  1. Vim
  1. Bash
  • jk : Vi mode on bash
  • lt N : List all files and directories, hidden are included, in Tree mode with N Level depth
  • l : Clear console and list everything but .git with N=1
  • ll : Clear console and list eveything in vertical mode
  • gs : Git status
  • gd : Git diff (with diff-so-fancy)
  • gh : Git history ( with link)
  • tasks : list TODO, FIXME and BUG tags on versioned code
  • c : Clear bash (Ctrl + l remapped)
  • fuck : Corrects previous console command (with thefuck)
  1. Tmux

Bash starts in last tmux session(I work with just one session and many windows and panes)

  • Ctrl + z : Leader Key(LK)
  • Ctrl + (h,j,k,l) : Move between panes
  • LK + c : Create new window
  • LK + n : Go to next window(right)
  • LK + p : Go to previous window(left)
  • LK + w : Change between windows with preview
  • LK + d : Detach from session(tmux attach, to attach to session)
  • LK + & : Kill window
  • LK + x : Kill current pane
  • LK + , : Rename window
  • LK + | : Split window vertically
  • LK + - : Split window horizontally
  • LK + { : Swap pane with last pane
  • LK + ! : Open current pane on new window
  • Alt + (h,j,k,l) : Resize panes

About

This repository contains some automation scripts to setup things on my pc

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published