From 7ad97d4912f3c5fb051939640c71506fa55967c8 Mon Sep 17 00:00:00 2001 From: Theunis Johannes Botha Date: Thu, 9 Feb 2017 00:56:04 +0100 Subject: [PATCH] cool config files --- bashrc | 115 ++++++++++++++++++++++++++++++++++++++++++ inputrc | 4 ++ progress_dot_on.png | Bin 0 -> 245 bytes progress_dot_on16.png | Bin 0 -> 168 bytes ubuntu_logo.png | Bin 0 -> 3342 bytes ubuntu_logo16.png | Bin 0 -> 711 bytes vimrc.local | 39 ++++++++++++++ 7 files changed, 158 insertions(+) create mode 100644 bashrc create mode 100644 inputrc create mode 100644 progress_dot_on.png create mode 100644 progress_dot_on16.png create mode 100644 ubuntu_logo.png create mode 100644 ubuntu_logo16.png create mode 100644 vimrc.local diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..aff9e9f --- /dev/null +++ b/bashrc @@ -0,0 +1,115 @@ +# ~/.bashrc: executed by bash(1) for non-login shells. +# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) +# for examples + +# If not running interactively, don't do anything +[ -z "$PS1" ] && return + +# don't put duplicate lines or lines starting with space in the history. +# See bash(1) for more options +HISTCONTROL=ignoreboth + +# append to the history file, don't overwrite it +shopt -s histappend + +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) +HISTSIZE=1000000 +HISTFILESIZE=200000 + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# If set, the pattern "**" used in a pathname expansion context will +# match all files and zero or more directories and subdirectories. +#shopt -s globstar + +# make less more friendly for non-text input files, see lesspipe(1) +[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +# set variable identifying the chroot you work in (used in the prompt below) +if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then + debian_chroot=$(cat /etc/debian_chroot) +fi + +# set a fancy prompt (non-color, unless we know we "want" color) +case "$TERM" in + xterm-color) color_prompt=yes;; +esac + +# uncomment for a colored prompt, if the terminal has the capability; turned +# off by default to not distract the user: the focus in a terminal window +# should be on the output of commands, not on the prompt +force_color_prompt=yes + +if [ -n "$force_color_prompt" ]; then + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + # We have color support; assume it's compliant with Ecma-48 + # (ISO/IEC-6429). (Lack of such support is extremely rare, and such + # a case would tend to support setf rather than setaf.) + color_prompt=yes + else + color_prompt= + fi +fi + +GIT_PS1_SHOWDIRTYSTATE=true + +if [ "$color_prompt" = yes ]; then + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\][\D{%d}] \A\[\033[1;31m\] \u@\h \[\033[01;32m\]C:\w>\[\033[00m\]\[\033[0;33m\]$(__git_ps1)\[\033[00m\] \$ ' +else + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\][\D{%d}] \A\[\033[1;31m\] \u@\h \[\033[01;32m\]C:\w>\[\033[00m\]\[\033[0;33m\]$(__git_ps1)\[\033[00m\] \$ ' +fi +unset color_prompt force_color_prompt + +# If this is an xterm set the title to user@host:dir +case "$TERM" in +xterm*|rxvt*) + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\][\D{%d}] \A\[\033[1;31m\] \u@\h \[\033[01;32m\]C:\w>\[\033[00m\]\[\033[0;33m\]$(__git_ps1)\[\033[00m\] \$ ' + # PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" + ;; +*) + ;; +esac + +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls -l -a --color=auto' + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + alias grep='grep --color=auto -n' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + +# some more ls aliases +alias ll='ls -alF' +alias la='ls -A' +alias l='ls -CF' +alias mysql='mysql -A' + +# Add an "alert" alias for long running commands. Use like so: +# sleep 10; alert +alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' +alias composer='php /usr/local/bin/composer.phar' + +# Alias definitions. +# You may want to put all your additions into a separate file like +# ~/.bash_aliases, instead of adding them here directly. +# See /usr/share/doc/bash-doc/examples in the bash-doc package. + +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +# enable programmable completion features (you don't need to enable +# this, if it's already enabled in /etc/bash.bashrc and /etc/profile +# sources /etc/bash.bashrc). +if [ -f /etc/bash_completion ] && ! shopt -oq posix; then + . /etc/bash_completion +fi + + +export PATH=`pwd`/depot_tools:"$PATH" diff --git a/inputrc b/inputrc new file mode 100644 index 0000000..5c40bf2 --- /dev/null +++ b/inputrc @@ -0,0 +1,4 @@ +"\e[A": history-search-backward +"\e[B": history-search-forward +"\e[1;5C": forward-word +"\e[1;5D": backward-word diff --git a/progress_dot_on.png b/progress_dot_on.png new file mode 100644 index 0000000000000000000000000000000000000000..c6c99a180d203fecb486445e0abd1f4507e5efb5 GIT binary patch literal 245 zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw{3?%2B3|#`GLIQk3ToV_>6NB`<_4Ajf#B2-( zl7?pt@uS@0?i`@`j3q&S!3+-1Zlr-YN#5=*3>~bp9zYIffk$L90|U1(2s1Lwnj--e zWH0gbb!ETDDZwwV&}h1NDo{wu)5S4F;&O6=#Hxmg69rc*h$RNOY@BWF!oVPMkU{L_ S7dZi-Dh5wiKbLh*2~7aHo=H0Z literal 0 HcmV?d00001 diff --git a/progress_dot_on16.png b/progress_dot_on16.png new file mode 100644 index 0000000000000000000000000000000000000000..0a81a56d6052231baa306fc1c05b1de64ebf8ccd GIT binary patch literal 168 zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw|3?!p1cPs@``~f~8uG$Q8`ri8a%TsI%Tw*o` zi*9`r4U}R`@^*J&=wOxg0CG4BJR*x37`TN&n2}-D90{Nxdx@v7EBif834U3nSl$KJ zKp}Zg7s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P^hA~Q>{EI94OD}Rfjgz}_runYnLL%Ly?dHa?d$kV z@ra$ioUFQXe3q@{M!(Ek3r17FGwcGsyG(aPsbiksxtfLwS_3 zXpK1Qg3S@@RqhvIyn~|+=|{`xxe|Z*m+W@Ce-IqzI&9ZKVIL$xHw(8LjJ(p4F}4dh zUW55=I-Ioe9z{Q7%%F`Osv|1xDg1Q4z^GM_ce3T-wUo!8c#SC;yqK+l7o7F=$WEk< zjlQ!x1B{!S?+ZxVPTw_m+xsE&Hbc?OF1?(FSt9p#IS#}+ySEyIxKgQ=)p|V^;2l2W*bL0FxjoO(qzrO2xPp`A}ibLq|e5l|_ zFpciKNx~_(rEWjCC_th*0N*m+0uNX^ZD@c}8!aBtw3%jpi^_Cb^+Dh!#}=x!3?LwE zB)=fGW@4<2v)6@5=zG`ij4(QFy5@QoLYfn5$HGH1(BE(e=cKHBO#xl?EnihTvnKcK zRfvun&JjD-xb#-8rm_?Luym)?shAjT|0~bw5Kjz^W7rA>KX;PIr<~)y#|294N}avq@{{R30 literal 0 HcmV?d00001 diff --git a/ubuntu_logo16.png b/ubuntu_logo16.png new file mode 100644 index 0000000000000000000000000000000000000000..919ebf2988aae38fb7b14988c9d36310fe0e2740 GIT binary patch literal 711 zcmV;&0yzDNP)bVG3vN{0x6xR8GyzdF;nW|}rk!hv)$HLZ z6E0<~CQWy#RlfF!jv`Dc)?PEMH=&9Ud}yeZ<-Lp6oSW&Pq94xoSJTmjX(Mqh#5KST zX=TaWyBaom^KjmT4@{UYqpbV9isg>pJ83%Uq1y>1J+=4XEltL_?qG=ft0i1 zJZ5j(|JN?8b~R^h=`-Lf_|8u-~%)5##s7HSK=0?XC#rq!^KJDTxcy3kfu%L`wldXTLKtWAxk zkL~1)J9#x<&^W?indb#wy^^)+BaO4s*2=bLKKjkrPHYGt`*P5N5uXA9H-7Q%45 zT5_m)odnW!kOoe}Au-z6>=L@*vf0XJm-rfPXis}uM%?CvZ#L9`#<7WZkPTXm!o9)C8jZ-W!+%bi*AiDJz9{7Rs<)R` tu{1-{qXvCys~)vJu~@NU#ftSk>mN>FZ^>qktUdq$002ovPDHLkV1hm~K-2&L literal 0 HcmV?d00001 diff --git a/vimrc.local b/vimrc.local new file mode 100644 index 0000000..ac434c9 --- /dev/null +++ b/vimrc.local @@ -0,0 +1,39 @@ +nmap :wincmd k +nmap :wincmd j +nmap :wincmd h +nmap :wincmd l +nnoremap :call MaximizeToggle() +nnoremap :call MaximizeToggle() +"map _ +"map = +"nnoremap :call MaximizeToggle() + +function! MaximizeToggle() + if exists("s:maximize_session") + exec "source " . s:maximize_session + call delete(s:maximize_session) + unlet s:maximize_session + let &hidden=s:maximize_hidden_save + unlet s:maximize_hidden_save + else + let s:maximize_hidden_save = &hidden + let s:maximize_session = tempname() + set hidden + exec "mksession! " . s:maximize_session + only + endif +endfunction + +set modeline +set ls=2 +set statusline="%f%m%r%h%w [%Y] [0x%02.2B]%< %F%=%4v,%4l %3p%% of %L" + +set number +set nowrap +set history=1000000 +com! FormatJSON %!python -m json.tool +nmap dd\|i=join([" -- Theunis J. Botha ", strftime("%a, %d %b %Y %H:%M:%S %z")], "") +imap dd\|i=join([" -- Theunis J. Botha ", strftime("%a, %d %b %Y %H:%M:%S %z")], "") +syntax on +set encoding=utf-8 +set background=dark