Skip to content

jhazen/dot-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dot-files

Personal dotfiles repo. Includes:

  • vim
  • bash
  • python

Instructions

git checkout https://github.com/jhazen/dot-files

cd dot-files/

Run 'all' as a parameter to setup everything; otherwise specify which dot file to setup.

./install.sh (vim|bash|python|all)

Vim

Shortcuts:

  • C-A - Autocomplete
  • C-N - Toggle Nerdtree
  • C-P - ctrlp (default workdir is ~/Workspace)
  • C-T - Open new tab
  • C-W - Previous tab
  • C-E - Next tab
  • C-U - Gundo toggle
  • C-B - Open bash tab
  • C-Y - Open python tab
  • C-D - Open sqlite3 tab
  • C-F - Fold
  • C-R - Compile/run, output into tooltip window (c/c++/python/shell/golang/asm)
  • C-L - Lint file. Supported filetypes: spec, ruby, javascript and python.
  • C-G - Tagbar toggle
  • vv - Open vertical split
  • ss - Open split
  • bn - Next buffer
  • bp - Previous buffer
  • bB - Bash vsplit
  • bP - Python vsplit
  • bD - sqlite3 vsplit
  • ,q - Resize vsplit to the left
  • ,r - Resize vsplit to the right
  • ,e - Resize split up
  • ,w - Resize split down
  • ,h - Move left between vsplit
  • ,l - Move right between vsplit
  • ,k - Move up between split
  • ,j - Move down between split
  • ,H - Move vsplit to the left
  • ,L - Move vsplit to the right
  • ,K - Move split up
  • ,J - Move split down
  • ,a - Page up
  • ,z - Page down
  • \d - Jedi definitions
  • \g - Jedi assignments
  • \n - Jedi usages
  • \k - Jedi pydoc
  • \t - Golang autocompletion
  • \r - Run python code
  • \b - Set python breakpoint
  • \q - Open PDB
  • \cd - CD to current git dir

Other useful tips:

  • :Gstatus - Git status
  • :Gcommit - Git commit
  • :Git - Git
  • :ServerRequest - Creates a server in vagrantlab environment, sets salt role, and boots
  • :Hex - Toggle hex editor
  • :ServerShellTab - Create a conqueterm shell in new tab with SSH to the vagrant box
  • :ServerShellVSplit - Create a conqueterm shell in new vsplit with SSH to the vagrant box
  • :ServerStart - Start VM in vagrantlab
  • :ServerStop - Stop VM in vagrantlab
  • <Space> mapped to @q; Record macro to 'q' register and execute with <Space> (Default is comment line with #)

Bash

For local bash changes, use ~/.bashlocal file.

Git prompt once in a git directory.

Vagrant aliases:

  • vs - vagrant status
  • vu - vagrant up
  • vp - vagrant provision
  • vd - vagrant destroy
  • vss - vagrant ssh
  • vh - vagrant halt
  • vr - vagrant rdp

Maven aliases:

  • mvdeploy - mvn clean package wildfly:deploy
  • mvundeploy - mvn wildfly:undeploy
  • mcp - mvn clean package

Git aliases:

  • gs - git status
  • gb - git branch
  • gd - git diff --color
  • gdt - git difftool
  • gc - git clone
  • gch - git checkout
  • gr - git remote
  • gm - git merge
  • gmt - git mergetool
  • gl - git log --oneline --decorate --color --graph
  • gc - git commit
  • gp - git pull
  • gP - git push
  • ga - git add
  • gf - git fetch
  • grm - git rm
  • gconf - git config
  • ginit - git init
  • greset - git reset
  • gst - git stash

Other aliases:

  • ll - ls -l
  • la - ls -la
  • lh - ls -lh
  • ltr - ls -ltr
  • psg - ps aux | grep

Python

pythonrc file for interactive shell. Includes tab completion, python shell history and certain shell functions (for replacing bash/zsh with python).

Help

Any bugs/concerns/issues/etc please email [email protected].

About

personal dot files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •