diff --git a/dotdrop b/dotdrop index d242742..74ffe6a 160000 --- a/dotdrop +++ b/dotdrop @@ -1 +1 @@ -Subproject commit d242742d24547ba2be4088d0f6068a4c67a6806b +Subproject commit 74ffe6a1b45ba49997ed6d1bd568af95aed13425 diff --git a/dotfiles/bashrc b/dotfiles/bashrc index 2ddcd4d..fda0eb9 100755 --- a/dotfiles/bashrc +++ b/dotfiles/bashrc @@ -1,21 +1,23 @@ -######################## -### bashrc from Marc ### -######################## +git_branch() { + git branch 2>/dev/null | grep '^*' | colrm 1 2 +} CHAR="\[\033[1;93m\]$\[\033[m\]" NAME="\[\033[1;32m\]\u\[\033[m\]" HOST="\[\033[0;37m\]\h\[\033[m\]" +GIT="\[\033[1;91m\](\$(git_branch))\[\033[m\]" DIR="\[\033[1;94m\]\w\[\033[m\]" -export PS1="${NAME}@${HOST}:${DIR} ${CHAR} " +export PS1="${NAME}@${HOST}:${DIR} ${GIT} ${CHAR} " -# dotfile management alias dotdrop="~/dotfiles/dotdrop.sh --cfg=~/dotfiles/config.yaml" - -# shortcuts alias ..="cd .." alias ll="ls -l" alias la="ls -la" alias rm="rm -i" +alias bashrc="vim ~/.bashrc" +alias sourcebashrc="source ~/.bashrc" +alias sbash="sourcebashrc" +alias vimrc="vim ~/.vimrc" # Source global definitions if [ -f /etc/bashrc ]; then diff --git a/dotfiles/config/i3/config b/dotfiles/config/i3/config index 23a0f51..b05d2e3 100644 --- a/dotfiles/config/i3/config +++ b/dotfiles/config/i3/config @@ -180,7 +180,7 @@ bar { status_command i3status } -bindsym $mod+Shift+b exec "xlock -mode blank -startCmd /opt/genua/bin/isweg -endCmd /opt/genua/bin/isda" +bindsym $mod+Shift+b exec "xlock -mode blank -startCmd /share/bin/isweg -endCmd /share/bin/isda" bindsym $mod+Shift+d exec "xlock -mode matrix" bindsym Ctrl+Shift+1 exec --no-startup-id setxkbmap us diff --git a/dotfiles/vimrc b/dotfiles/vimrc index 1482752..c2c3350 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -1,7 +1,3 @@ -" ####################### -" ### vimrc from Marc ### -" ####################### - " Vundle Plugin Manager - START " Required set nocompatible @@ -14,6 +10,7 @@ Plugin 'jiangmiao/auto-pairs' Plugin 'scrooloose/nerdtree' Plugin 'editorconfig/editorconfig-vim' Plugin 'maxboisvert/vim-simple-complete' +Plugin 'itchyny/vim-gitbranch' " Colorscheme Plugin 'joshdick/onedark.vim' @@ -28,12 +25,17 @@ filetype plugin indent on " NerdTree let NERDTreeShowHidden=1 " Lightline Statusbar +" absolutepath or filename set laststatus=2 let g:lightline = { \ 'colorscheme': 'wombat', \ 'active': { - \ 'left': [ [ 'mode', 'paste' ], [ 'readonly', 'absolutepath', 'modified' ] ], - \} + \ 'left': [ [ 'mode', 'paste' ], + \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ] + \ }, + \ 'component_function': { + \ 'gitbranch': 'gitbranch#name' + \ }, \ } " Onedark Colorscheme let g:onedark_hide_endofbuffer=1