From d085fbddcce69fc81c48c3c0400325400bc66405 Mon Sep 17 00:00:00 2001 From: Bilal Hussain Date: Sun, 8 May 2011 00:04:19 +0100 Subject: [PATCH] first commit --- .ackrc | 4 +++ .bash_profile | 30 ++++++++++++++++++++ .bashrc | 8 ++++++ .emacs | 3 ++ .gitignore | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++ .gvimrc | 0 .inputrc | 12 ++++++++ .irbrc | 13 +++++++++ .screenrc | 36 ++++++++++++++++++++++++ 9 files changed, 182 insertions(+) create mode 100644 .ackrc create mode 100755 .bash_profile create mode 100644 .bashrc create mode 100644 .emacs create mode 100644 .gitignore create mode 100644 .gvimrc create mode 100644 .inputrc create mode 100644 .irbrc create mode 100755 .screenrc diff --git a/.ackrc b/.ackrc new file mode 100644 index 0000000..166366d --- /dev/null +++ b/.ackrc @@ -0,0 +1,4 @@ +--type-add=ruby=.haml,.rake,.rsel +--type-set=music=.mp3,.m4a,.flac,.ac3,.ogg,.aiff,.m4b,.aac,.wav,.wmv,.ape,.mka +--type-set=manga=.cbz,.cbr,.cba,cb7 +--type-set=tex-temp=.pdfsync,.log,.bbl,.aux,.blg,.synctex,.fdb,.out,.toc,.fdb_latexmk diff --git a/.bash_profile b/.bash_profile new file mode 100755 index 0000000..ccd3019 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,30 @@ + +[ -f ~/.bashrc ] && source ~/.bashrc + +export PS1="Bilalh: $ " # bash prompt +export HISTFILESIZE=10000 # the bash history should save 10000 commands +export HISTCONTROL=erasedups # remove duplicate from history +# don't store history entries that match this pattern +declare -x HISTIGNORE='op:opr:mlgw:cs:mll:ax:jr*:gitx:hista:mlwg:aes*:on:mdb*:histm: *' + +alias h='history | grep ' +alias hist='history | less ' + + +# Bash Settings +shopt -s histappend # all sessions are saved +shopt -s cdspell # fix minor error in cd paths +shopt -s histreedit # allows re-edit on C-R + +export EDITOR='vim' + +source ~/.completion/git-completion.bash # git auto complete +source ~/.bash/bashmarks.bash + +# Path settings(bin before current $PATH to override default version) +export PATH=$HOME/bin:/usr/local/bin:$PATH +# scripts +export PATH=$PATH:/usr/local/sbin:$HOME/scripts:$HOME/bin/mplayer_osx +# pkg config# pkg config# pkg config +export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig" + diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..bbc7bb2 --- /dev/null +++ b/.bashrc @@ -0,0 +1,8 @@ +#Adds all files in .bash at lanuch +for i in ~/.bash/*.sh; do + source $i +done + +for i in ~/.pbash/*.sh; do + source $i +done diff --git a/.emacs b/.emacs new file mode 100644 index 0000000..04361e7 --- /dev/null +++ b/.emacs @@ -0,0 +1,3 @@ +(add-to-list 'auto-mode-alist '("\\.[Cc][Ss][Vv]\\'" . csv-mode)) + (autoload 'csv-mode "csv-mode" + "Major mode for editing comma-separated value files." t) \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d5dfd3e --- /dev/null +++ b/.gitignore @@ -0,0 +1,76 @@ +bin/ +tmp/ +.svn/ +.hg +.svn +CVS + +# automatic backup files +*~.nib +*.swp +*~ +*(Autosaved).rtfd/ +Backup[ ]of[ ]*.pages/ +Backup[ ]of[ ]*.key/ +Backup[ ]of[ ]*.numbers/ + +# Mac OS X Finder +.DS_Store +# Sparkle distribution Private Key (Don’t check me in!) +dsa_priv.pem +# XCode (and ancestors) per-user config (very noisy, and not relevant) +*.mode1 +*.mode1v3 +*.mode2v3 +*.perspective +*.perspectivev3 +*.pbxuser +# Xcode 4 +xcuserdata/ +project.xcworkspace/ +# Generated files +VersionX-revision.h + + +*.aux +*.glo +*.idx +*.log +*.toc +*.ist +*.acn +*.acr +*.alg +*.bbl +*.blg +*.dvi +*.glg +*.gls +*.ilg +*.ind +*.lof +*.lot +*.maf +*.mtc +*.mtc1 +*.out +*.synctex.gz +*.fls +*.fmt +*.ini +*.log +*.fdb_latexmk +*.log +*.watcher_pid + +*.DS_Store +*.o +*.out +Thumbs.db +*~ +\#* +.\#* +*.swp +*.tmproj +tmtags +*.class diff --git a/.gvimrc b/.gvimrc new file mode 100644 index 0000000..e69de29 diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..fe3fd81 --- /dev/null +++ b/.inputrc @@ -0,0 +1,12 @@ +set completion-ignore-case On + +# these allow you to use ctrl+left/right arrow keys +# to jump the cursor over words +# +#"\e[5C": forward-word +#"\e[5D": backward-word] +"3": "#" +"£": "#" + +set meta-flag on +set input-meta on diff --git a/.irbrc b/.irbrc new file mode 100644 index 0000000..f72721c --- /dev/null +++ b/.irbrc @@ -0,0 +1,13 @@ +#!/opt/local/bin/ruby1.9 +require 'irb/ext/save-history' +IRB.conf[:AUTO_INDENT] = false +IRB.conf[:SAVE_HISTORY] = 100 +IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history" + + +class Object + # Return only the methods not present on basic objects + def imethods + (self.methods - Object.new.methods).sort + end +end \ No newline at end of file diff --git a/.screenrc b/.screenrc new file mode 100755 index 0000000..fe782a6 --- /dev/null +++ b/.screenrc @@ -0,0 +1,36 @@ +# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # + +## Some general options ## + +# Turn off start message: +startup_message off + +# Set messages timeout to one second: +msgwait 1 +hardstatus alwayslastline "%{=b}%{G} %{b}%w" +# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # + +## Keybindings ## + +# bind F7 to detach screen session from this terminal +# bind F8 to kill current screen window. +# bind F9 to create a new screen +# bind F10 to rename current screen window +# bind F11 to move to previous window +# bind F12 to move to next window +#bindkey -k k7 detach +#bindkey -k k8 kill +#bindkey -k k9 screen +#bindkey -k k2 prev +#bindkey -k k; title +#bindkey -k F1 prev +#bindkey -k k3 next + +bindkey -k k13 prev +bindkey -k k14 next + +# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # +defscrollback 1000 +# Make the output buffer large for (fast) xterms. +termcapinfo xterm* OL=1000 +shell bash