diff --git a/bin/.docker.sh.swp b/bin/.docker.sh.swp new file mode 100644 index 0000000..8cbb692 Binary files /dev/null and b/bin/.docker.sh.swp differ diff --git a/bin/docker.sh b/bin/docker.sh new file mode 100755 index 0000000..40e5c72 --- /dev/null +++ b/bin/docker.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +# Outputs information about the current docker status +DOCKER_STATUS=$(docker info) +CONTAINERS=$(echo "$DOCKER_STATUS" | awk '/Containers/ {print $2}') +RUNNING=$(echo "$DOCKER_STATUS" | awk '/Running/ {print $2}') +STOPPED=$(echo "$DOCKER_STATUS" | awk '/Stopped/ {print $2}') +IMAGES=$(echo "$DOCKER_STATUS" | awk '/Images/ {print $2}') +echo -e "\ue7b0 $RUNNING \ufb99 $STOPPED \uf1c5 $IMAGES" diff --git a/tmux.conf b/tmux.conf index b444ca9..a6ff382 100644 --- a/tmux.conf +++ b/tmux.conf @@ -23,7 +23,7 @@ set -g clock-mode-colour white # status config set -g status-interval 5 set -g status-style "bg=black, fg=white" -set -g status-right "| #(~/.tmux/plugins/tmux-mem-cpu-load/tmux-mem-cpu-load -p -i 1 -a 1)|#[default] %a %l:%M " +set -g status-right "#(~/.dotfiles/bin/docker.sh) | #(~/.tmux/plugins/tmux-mem-cpu-load/tmux-mem-cpu-load -p -i 1 -a 1)|#[default] %a %l:%M " set -g status-right-length 100 set -g status-left "#(~/.dotfiles/bin/weather/weather) | #(~/.dotfiles/bin/water/water.sh) |" set -g status-left-length 40 diff --git a/vimrc b/vimrc index 58be55c..44b9826 100644 --- a/vimrc +++ b/vimrc @@ -23,6 +23,7 @@ let g:go_highlight_extra_types=1 " nerdtree settings let NERDTreeHighlightCursorLine=1 +let NERDTreeQuitOnOpen=1 autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif @@ -40,4 +41,3 @@ inoremap inoremap inoremap inoremap -