From e27e4094041138d2430bd6f3123a4bbf677f508a Mon Sep 17 00:00:00 2001 From: Johannes Stolp Date: Fri, 12 Aug 2016 18:03:22 +0200 Subject: added terminess powerline font for xterm, small change in PS1 variable, reorderd tmux config and added new 'prefix f' for full screen mode --- .Xresources_gray | 5 ++++- .bashrc.files/bash_prompt | 4 ++-- .bashrc.files/functions | 6 ++++++ .cgdb/cgdbrc | 2 ++ .tmux.conf | 14 +++++++++++++- 5 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 .bashrc.files/functions diff --git a/.Xresources_gray b/.Xresources_gray index 1f41cc8..54eb7b8 100644 --- a/.Xresources_gray +++ b/.Xresources_gray @@ -1,7 +1,10 @@ ! dotfiles -- .Xresources_gray ! author: johannst -xterm*font : 9x15 +!xterm*font: 9x15 +xterm*faceName: Terminess Powerline +xterm*faceSize: 12 + XTerm*scaleHeight: 1.1 xterm*metaSendsEscape: true xterm*saveLines: 16384 diff --git a/.bashrc.files/bash_prompt b/.bashrc.files/bash_prompt index 12db681..9c53c48 100644 --- a/.bashrc.files/bash_prompt +++ b/.bashrc.files/bash_prompt @@ -5,8 +5,8 @@ # ::user::host - time - path # [return_code] $> -#export PS1="\[\033[38;5;88m\]::\[$(tput sgr0)\]\[\033[38;5;202m\]\u\[$(tput sgr0)\]\[\033[38;5;88m\]::\[$(tput sgr0)\]\[\033[38;5;208m\]\H\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;7m\]-\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;226m\]\t\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;7m\]-\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;89m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\n\[$(tput sgr0)\]\[\033[38;5;7m\][\[$(tput sgr0)\]\[\033[38;5;214m\]\$?\[$(tput sgr0)\]\[\033[38;5;7m\]]\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;67m\]\\$>\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]" +#export PS1="\[\033[38;5;88m\]::\[$(tty -s && tput sgr0)\]\[\033[38;5;202m\]\u\[$(tty -s && tput sgr0)\]\[\033[38;5;88m\]::\[$(tty -s && tput sgr0)\]\[\033[38;5;208m\]\H\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]\[\033[38;5;7m\]-\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]\[\033[38;5;226m\]\t\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]\[\033[38;5;7m\]-\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]\[\033[38;5;89m\]\w\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\]\n\[$(tty -s && tput sgr0)\]\[\033[38;5;7m\][\[$(tty -s && tput sgr0)\]\[\033[38;5;214m\]\$?\[$(tty -s && tput sgr0)\]\[\033[38;5;7m\]]\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]\[\033[38;5;67m\]\\$>\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]" # ::user::host - time - path # [return_code] >> -export PS1="\[\033[38;5;88m\]::\[$(tput sgr0)\]\[\033[38;5;202m\]\u\[$(tput sgr0)\]\[\033[38;5;88m\]::\[$(tput sgr0)\]\[\033[38;5;208m\]\H\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;7m\]-\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;226m\]\t\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;7m\]-\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;74m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\n\[$(tput sgr0)\]\[\033[38;5;7m\][\[$(tput sgr0)\]\[\033[38;5;214m\]\$?\[$(tput sgr0)\]\[\033[38;5;7m\]]\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;67m\]>>\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]" +export PS1="\[\033[38;5;88m\]::\[$(tty -s && tput sgr0)\]\[\033[38;5;202m\]\u\[$(tty -s && tput sgr0)\]\[\033[38;5;88m\]::\[$(tty -s && tput sgr0)\]\[\033[38;5;208m\]\H\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]\[\033[38;5;7m\]-\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]\[\033[38;5;226m\]\t\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]\[\033[38;5;7m\]-\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]\[\033[38;5;74m\]\w\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\]\n\[$(tty -s && tput sgr0)\]\[\033[38;5;7m\][\[$(tty -s && tput sgr0)\]\[\033[38;5;214m\]\$?\[$(tty -s && tput sgr0)\]\[\033[38;5;7m\]]\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]\[\033[38;5;67m\]>>\[$(tty -s && tput sgr0)\]\[\033[38;5;15m\] \[$(tty -s && tput sgr0)\]" diff --git a/.bashrc.files/functions b/.bashrc.files/functions new file mode 100644 index 0000000..fbab13d --- /dev/null +++ b/.bashrc.files/functions @@ -0,0 +1,6 @@ +function vimgrep() +{ + if [ -z $1 ]; then echo -e "vimgrep PATTERN PATH"; return 1; fi + if [ -z $2 ]; then echo -e "vimgrep PATTERN PATH"; return 1; fi + \grep -IRn $1 $2 | vim - +} diff --git a/.cgdb/cgdbrc b/.cgdb/cgdbrc index 4713113..95be830 100644 --- a/.cgdb/cgdbrc +++ b/.cgdb/cgdbrc @@ -1,3 +1,5 @@ hi Type ctermbg=#00ff00 hi Arrow ctermbg=129 hi SelectedLineNr ctermbg=160 + +set ignorecase diff --git a/.tmux.conf b/.tmux.conf index 60612ea..343cf07 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,13 +1,25 @@ set -g prefix C-x bind-key a send-prefix # for nested tmux sessions +bind-key -T prefix C-q confirm-before -p "kill-window #W? (y/n)" kill-window +bind-key -T prefix f resize-pane -Z # overwrites find window + +# had some struggle with vim key delay +#set -s escape-time 0 + # use support - set to on if you want to use the mouse setw -g mouse on # Set the default terminal mode to 256color mode set -g default-terminal "screen-256color" +# split settings bind-key -T prefix v split-window -h bind-key -T prefix h split-window -bind-key -T prefix C-c confirm-before -p "kill-window #W? (y/n)" kill-window +# Copy mode settings +set-window-option -g mode-keys vi +bind-key -t vi-copy 'v' begin-selection +bind-key -t vi-copy 'y' copy-selection +bind-key -T prefix C-v copy-mode +bind-key -T prefix p paste-buffer # overwrites previous window -- cgit v1.2.3