Added tmux 256 color mode! Alias ls with -F only if not mac computer. Swapped cbranch arguements. Added solarized 256 colorscheme to tmux.conf. Sent titlestring of tmux to the tmux process running
This commit is contained in:
parent
43cf1140ad
commit
f384c712c8
7
bashrc
7
bashrc
@ -102,7 +102,7 @@ if ! shopt -oq posix; then
|
|||||||
fi
|
fi
|
||||||
PATH=$PATH:~/tmp/ucpp/ucpp/
|
PATH=$PATH:~/tmp/ucpp/ucpp/
|
||||||
function tsh(){
|
function tsh(){
|
||||||
ssh $* -t 'tmux a||wemux a||tmux;exit'&&clear
|
ssh $* -t 'tux||tmux a||wemux a||tmux;exit'
|
||||||
}
|
}
|
||||||
. /usr/share/autojump/autojump.sh
|
. /usr/share/autojump/autojump.sh
|
||||||
[[ -s /home/stonewareslord/.autojump/etc/profile.d/autojump.sh ]] && source /home/stonewareslord/.autojump/etc/profile.d/autojump.sh
|
[[ -s /home/stonewareslord/.autojump/etc/profile.d/autojump.sh ]] && source /home/stonewareslord/.autojump/etc/profile.d/autojump.sh
|
||||||
@ -116,7 +116,10 @@ complete -cf sudo man
|
|||||||
|
|
||||||
#Alias definitions.
|
#Alias definitions.
|
||||||
#Colors!
|
#Colors!
|
||||||
alias ls='ls --color=always -F'
|
if [ "$(uname)" != "Darwin" ] ; then
|
||||||
|
alias ls='ls --color=always -F'
|
||||||
|
fi
|
||||||
|
alias tmux='tmux -2'
|
||||||
alias less='less -r'
|
alias less='less -r'
|
||||||
alias tree='tree -C'
|
alias tree='tree -C'
|
||||||
alias grep="grep --color=auto"
|
alias grep="grep --color=auto"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
type = cat-file -t
|
type = cat-file -t
|
||||||
dump = cat-file -p
|
dump = cat-file -p
|
||||||
d = difftool
|
d = difftool
|
||||||
cbranch = !sh -c 'git commit -m \"$1\"&&git branch $2&&git reset --hard HEAD~1&&git co \"$2\"' -
|
cbranch = !sh -c 'git commit -m \"$2\"&&git branch $1&&git reset --hard HEAD~1&&git co \"$1\"' -
|
||||||
[push]
|
[push]
|
||||||
default = matching
|
default = matching
|
||||||
[core]
|
[core]
|
||||||
|
33
tmux.conf
33
tmux.conf
@ -10,7 +10,7 @@ bind | split-window -h
|
|||||||
bind - split-window -v
|
bind - split-window -v
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
set-option -g history-limit 50000
|
set-option -g history-limit 50000
|
||||||
|
set -g set-titles-string "tmux.#I.#W"
|
||||||
set -g prefix C-a
|
set -g prefix C-a
|
||||||
bind C-a send-prefix
|
bind C-a send-prefix
|
||||||
unbind C-b
|
unbind C-b
|
||||||
@ -37,3 +37,34 @@ set -g status-interval 5
|
|||||||
set -g status-right-length 60
|
set -g status-right-length 60
|
||||||
set -g status-right "#[fg=white]#S #I:#P #[fg-yellow] %d %b %Y #[fg=green] %l:%M %p #(date -u | awk '{print $4}')"
|
set -g status-right "#[fg=white]#S #I:#P #[fg-yellow] %d %b %Y #[fg=green] %l:%M %p #(date -u | awk '{print $4}')"
|
||||||
bind-key R source-file ~/.tmux.conf
|
bind-key R source-file ~/.tmux.conf
|
||||||
|
#### COLOUR (Solarized 256)
|
||||||
|
|
||||||
|
# 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 #base0
|
||||||
|
set-window-option -g window-status-bg default
|
||||||
|
#set-window-option -g window-status-attr dim
|
||||||
|
|
||||||
|
# active window title colors
|
||||||
|
set-window-option -g window-status-current-fg colour166 #orange
|
||||||
|
set-window-option -g window-status-current-bg default
|
||||||
|
#set-window-option -g window-status-current-attr bright
|
||||||
|
|
||||||
|
# pane border
|
||||||
|
set-option -g pane-border-fg colour235 #base02
|
||||||
|
set-option -g pane-active-border-fg colour240 #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
|
||||||
|
|
||||||
|
# clock
|
||||||
|
set-window-option -g clock-mode-colour colour64 #green
|
||||||
|
Loading…
x
Reference in New Issue
Block a user