diff options
author | Johannes Stolp <jstolp@fr65cs25.internal.synopsys.com> | 2016-08-12 18:03:22 +0200 |
---|---|---|
committer | Johannes Stolp <jstolp@fr65cs25.internal.synopsys.com> | 2016-08-12 18:03:22 +0200 |
commit | e27e4094041138d2430bd6f3123a4bbf677f508a (patch) | |
tree | 67ccaf09b3667db711b24891b97bbb91c5b4121e /.bashrc.files | |
parent | 223ea8f5199aef6b7c6b771c4448282288f18d9b (diff) | |
download | dotfiles-e27e4094041138d2430bd6f3123a4bbf677f508a.tar.gz dotfiles-e27e4094041138d2430bd6f3123a4bbf677f508a.zip |
added terminess powerline font for xterm, small change in PS1 variable, reorderd tmux config and added new 'prefix f' for full screen mode
Diffstat (limited to '.bashrc.files')
-rw-r--r-- | .bashrc.files/bash_prompt | 4 | ||||
-rw-r--r-- | .bashrc.files/functions | 6 |
2 files changed, 8 insertions, 2 deletions
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 - +} |