Added some more powerline stuff.

This commit is contained in:
2014-05-02 01:26:54 -07:00
parent 6ff0d0bf10
commit c3c3f17770
7 changed files with 134 additions and 67 deletions

View File

@@ -2,11 +2,14 @@
BEGIN{
column_count=split(cols,column_numbers," ");
}
{
{
for(i=1; i<=column_count; i++)
if(column_numbers[i] < 0)
printf "%s%s", $(NF + 1 + column_numbers[i]), OFS
printf "%s", $(NF + 1 + column_numbers[i])
else
printf "%s%s", $column_numbers[i], OFS
printf "%s", $column_numbers[i]
if(i <= column_count)
printf "%s", OFS
printf "%s", ORS
}

View File

@@ -182,3 +182,7 @@ function fix_brew_htop() {
sudo chown root $(readlink -f `which htop`)
sudo chmod 6555 `which htop`
}
function pip_package_location() {
pip show $1 | grep Location | get_cols 2
}

View File

@@ -11,11 +11,10 @@ set-option -g status-utf8 on
set-option -g status-justify "centre"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-bg colour235
set-option -g status-fg colour255
# Set up resize-pane keys
bind-key + resize-pane -D 3
bind-key / resize-pane -L 3
bind-key - resize-pane -U 3
bind-key * resize-pane -R 3
bind-key * resize-pane -R 3
source ~/.tmux.powerline