Skip to content

Instantly share code, notes, and snippets.

@wadouk
Last active August 7, 2018 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wadouk/a7096b1a824ad66bbbb92df82d7c9651 to your computer and use it in GitHub Desktop.
Save wadouk/a7096b1a824ad66bbbb92df82d7c9651 to your computer and use it in GitHub Desktop.
dotfiles
PS1="\[\033[01;32m\]{\${PIPESTATUS[@]}} \t [\[\033[01;37m\]\W\[\033[01;32m\]]\[\033[00m\]\$(__git_ps1 ' (%s)')\[\033[01;32m\]\n\$\[\033[00m\] "
[alias]
st = status -sb
ci = commit
co = checkout
br = branch
amend = commit --amend -C HEAD
lg=log --graph --pretty=format:'%Cred%h%Creset%C(green bold)%d%Creset %s %Cgreen(%cr) %C(bold blue)%aN%Creset' --abbrev-commit --all
tp=log --branches --graph --pretty=format:'%Cred%h%Creset%C(green bold)%d%Creset %s %Cgreen(%cr) %C(bold blue)%aN%Creset' --abbrev-commit --date=relative --not --remotes=origin
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[branch "master"]
remote = origin
merge = mastery
[core]
excludesfile = ~/.config/git/gitignore
autocrlf = input
[receive]
denyDeleteCurrent = warn
[push]
default = current
[branch]
# autosetuprebase = always
[mailmap]
file = ~/.config/git/mailmap
[merge "ours"]
driver = true
[init]
templatedir = ~/.config/git/git-templates
[log]
mailmap = true
node_modules/
node_modules.*/
user*json
*.iml
*.mmdb
.idea
*.log
yarn.lock
package-lock.json
.vscode
.rakeTasks
#unbind C-b
# screen prefix key
#set -g prefix C-z
setw -g mode-keys vi
set -g base-index 1
# preserv ps1
#new bash --login
set-option -g default-command bash
# large history
set-option -g history-limit 10000
setw -g automatic-rename
set-option -g status-keys vi
#set -g default-terminal "xterm-256color"
# status bar customisation
set-option -g status-bg default
set-option -g status-fg green
# highlight status bar on activity
set -g visual-activity on
# change foreground-background for the current window
setw -g window-status-current-attr reverse
setw -g monitor-activity on
# for vim
setw -g xterm-keys on
# load average, battery, and date + time
set -g status-right "#[fg=white]#(hostname)@#(host `hostname` | cut -d' ' -f4) #[fg=cyan]%d-%m-%y #[fg=green]%H:%M"
unbind %
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# fixes scrolling with mouse wheel (youhou!)
# set-option -g mode-mouse on
set -g mouse on
set -g mouse-utf8 off
# vim mode for copying text
setw -g mode-keys vi
bind [ copy-mode
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
bind -t vi-copy V rectangle-toggle
bind ] paste-buffer
# customize statusbar colors
#### COLOUR
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244
set-window-option -g window-status-bg default
# active window title colors
set-window-option -g window-status-current-fg colour166 #orange
set-window-option -g window-status-current-bg default
# pane border
set-option -g pane-border-fg colour240 #base01
set-option -g pane-active-border-fg colour166 #base01
# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
#### /COLOUR
#
set -g visual-activity on
@wadouk
Copy link
Author

wadouk commented Jan 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment