Coder Social home page Coder Social logo

dotfiles's Introduction

Dotfiles

Based on https://github.com/anishathalye/dotfiles and powered by https://git.io/dotbot .

Override configuration by editing / creating these files

  • vim : ~/.vimrc_local
  • zsh / bash : ~/.shell_local_before run first
  • zsh : ~/.zshrc_local_before run before .zshrc
  • zsh : ~/.zshrc_local_after run after .zshrc
  • zsh / bash : ~/.shell_local_after run last
  • git : ~/.gitconfig_local
  • tmux : ~/.tmux_local.conf

zsh config

Hide user in prompt

export RPR_SHOW_USER=false

Hide hostname in prompt

export RPR_SHOW_HOST=false

Change arrow char in prompt

export PR_ARROW_CHAR='>'

dependencies

enable mouse copy

For mouse copy you need to install xclip and xsel .

NOTE: in order to copy the selected text to clipboard you need to press the return key (before releasing the mouse buttton).

usage

git clone https://github.com/CatalinManolescu/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./install

NOTE: please change the git user name and email :)

commands

List tags for a docker image available on Docker hub

dtags <image> [<filter-key>[+<filter-key>[..]]]

Examples:

  • list all tags for nodejs

    dtags node
  • list all tags for nodejs that contain the key 'alpine' and 'lts'

    dtags node alpine+lts

git status

git st

tmux commands

Tmux prefix is ctrl + a

tmx                                     # start tmux and create new session
tmx <session-name>                      # start tmux and create new session and link to specified session
tmux a                                  # start tmux and attach to running session
tmux a -t <session-name>                # start tmux and attach to specified session
tmux ls                                 # list available sessions
tmux kill-session -t <session-name>     # kill session

sessions

:new                     # new session
s                        # list sessions
$                        # rename session
d                        # detach
:attach -c path          # set session working directory (used for new windows) 

windows

c                         # new window
,                         # rename window
w                         # list windows
&                         # kill window
.                         # move window (prompted for a new number)
:movew                    # move window to the next unused number

panes

v                         # vertical split (works also with %)
h                         # horizontal split (works also with ")
o                         # swap panes
q                         # show pane numbers
!                         # convert pane into window
x                         # kill pane
<space>                   # toggle between layouts
:setw synchronize-panes   # toggle pane synchronize (or use 'on' or 'off' to make it specific)

misc

?                         # list shortcuts
:                         # prompt

More commands at

dotfiles's People

Contributors

catalinmanolescu avatar

Forkers

adrian-covaciu

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.