Git Product home page Git Product logo

dotfiles's Introduction

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

dotfiles's People

Contributors

rodrigocmoraes avatar

Stargazers

William Azevedo da Silva avatar Hatsumi avatar Levi da Silva Lima avatar Juliany Raiol avatar Wesley Rocha avatar Gabriel Carneiro avatar

Watchers

James Cloos avatar

dotfiles's Issues

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.