Skip to content

CatalinManolescu/dotfiles

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published