diff options
author | Dan McGee <dpmcgee@gmail.com> | 2007-05-23 00:14:49 -0400 |
---|---|---|
committer | Dan McGee <dpmcgee@gmail.com> | 2007-05-23 00:14:49 -0400 |
commit | 328895e1be86d614c54f40693f067dffdd5f990a (patch) | |
tree | cfbf91e88d5da26ed244e76d30a65d1e48de69d4 | |
parent | 48c0d76fd0ab05e8c5c3b64b7b2f20a6112aec93 (diff) | |
download | configfiles-328895e1be86d614c54f40693f067dffdd5f990a.tar.gz configfiles-328895e1be86d614c54f40693f067dffdd5f990a.zip |
Add a few more files
Add my Xdefaults and bashrc config files.
-rw-r--r-- | Xdefaults | 97 | ||||
-rw-r--r-- | bashrc | 105 |
2 files changed, 202 insertions, 0 deletions
diff --git a/Xdefaults b/Xdefaults new file mode 100644 index 0000000..3cf85c6 --- /dev/null +++ b/Xdefaults @@ -0,0 +1,97 @@ +! +! .Xdefaults +! + +!! colors based on the tango color palette +!*foreground: rgb:ff/ff/ff +!*background: rgb:00/00/00 +!!black +*color0: rgb:2e/34/36 +*color8: rgb:55/57/53 +!!red +*color1: rgb:cc/00/00 +*color9: rgb:ef/29/29 +!!green +*color2: rgb:43/9a/06 +*color10: rgb:8a/e2/34 +!!brown/yellow +*color3: rgb:c4/a0/00 +*color11: rgb:fc/e9/4f +!!blue +*color4: rgb:34/65/a4 +*color12: rgb:72/9f/cf +!!magenta +*color5: rgb:75/50/7b +*color13: rgb:ad/7f/a8 +!!cyan +*color6: rgb:06/98/9a +*color14: rgb:34/e2/e2 +!!white +*color7: rgb:d3/d7/cf +*color15: rgb:ee/ee/ec + +!! urxvt settings +urxvt*foreground: rgb:ff/ff/ff +urxvt*background: rgb:00/00/00 +!urxvt*depth: 24 +urxvt*geometry: 80x36 +urxvt*saveLines: 32767 +urxvt*cursorBlink: true +!!start a login shell for each urxvt instance +urxvt*loginShell: true +!!scroll on keypress but not new output +urxvt*scrollTtyKeypress:true +urxvt*scrollTtyOutput: false +!!scrollbar position and look +urxvt*scrollBar: false +!urxvt*scrollBar: true +!urxvt*scrollStyle: plain +!urxvt*scrollBar_floating: true +!urxvt*scrollBar_right: true +!urxvt*scrollColor: rgb:60/60/60 +urxvt*internalBorder: 0 +!urxvt*externalBorder: 0 +urxvt*termName: rxvt-unicode +!urxvt*termName: rxvt +!urxvt*font: xft:Bitstream Vera Sans Mono:pixelsize=12 +urxvt*font: xft:DejaVu Sans Mono:pixelsize=12 +urxvt*cutchars: "()*,<>[]{}|' +urxvt*print-pipe: cat > $(echo ~/urxvt.dump.`date +'%Y%M%d%H%m%S'`) +urxvt*mapAlert: true +urxvt*utmpInhibit: true +urxvt.perl-lib: /usr/lib/urxvt/perl/ +urxvt*perl-ext-common: default,matcher +urxvt*matcher.button: 1 +urxvt*matcher.pattern.1: \\bwww\\.[\\w-]+\\.[\\w./?&@#=-]*[\\w/-] +urxvt*urlLauncher: /opt/mozilla/bin/firefox +urxvt.matcher.pattern.2: \\B(/\\S+?):(\\d+)(?=:|$) +urxvt.matcher.launcher.2: /usr/bin/gvim +$2 $1 +urxvt*keysym.S-Prior: ^[[5;2~ +urxvt*keysym.S-Next: ^[[6;2~ + +!! xterm settings +xterm*dynamicColors: true +xterm*utf8: 2 +xterm*eightBitInput: true +xterm*saveLines: 32767 +xterm*scrollTtyKeypress:true +xterm*scrollTtyOutput: false +xterm*scrollBar: false +xterm*loginShell: true +xterm*faceName: Bitstream Vera Sans Mono:pixelsize=12 +xterm*jumpScroll: true +xterm*multiScroll: true +xterm*toolBar: false + +Xcursor*theme: ghost + +Xft*dpi: 124 +Xft*antialias: true + +xpdf*enableFreetype: yes +xpdf*antialias: yes +xpdf*foreground: black +xpdf*background: white +xpdf*urlCommand: /opt/mozilla/bin/firefox %s +xpdf*viKeys: on + @@ -0,0 +1,105 @@ +#!/bin/bash +# +# .bashrc for non-login shells +# +# Set environment variables +export EDITOR='vim' +export CVS_RSH='ssh' +if [ -x /opt/mozilla/bin/firefox ]; then + export BROWSER='/opt/mozilla/bin/firefox' +else + export BROWSER='/usr/bin/links' +fi + +# Various shell options +#case-insensitive filename globbing +shopt -s nocaseglob +#ignore small errors in cd +shopt -s cdspell +#no duplicates in history +export HISTCONTROL=erasedups:ignorespace +export HISTSIZE=1000 + +# Enable bash completion in interactive shells +if [ -f /etc/bash_completion ]; then + source /etc/bash_completion +fi + +# Custom Prompt +function bash_prompt { + local BLUE="\[\e[1;34m\]" + local RED="\[\e[1;31m\]" + local GREEN="\[\e[0;32m\]" + local NONE="\[\e[0;0m\]" + + if [ $TERM != "linux" ]; then + local TITLEBAR="\[\e]0;\w\a\]"; + else + local TITLEBAR=""; + fi + + export PS1="$TITLEBAR\n$RED\u$NONE@$BLUE\h $GREEN\w$NONE\n\$ " +} +bash_prompt; unset -f bash_prompt + +if [ -x /usr/bin/pacman ]; then + # pacman aliases + alias pac='pacman' + alias pacQ='pacman -Q' + alias pacQs='pacman -Qs' + alias pacQi='pacman -Qi' + alias pacQm='pacman -Qm' + alias pacS='sudo pacman -S' + alias pacSy='sudo pacman -Sy' + alias pacSyu='sudo pacman -Syu' + alias pacSs='/usr/bin/pacsearch' + alias pacSi='pacman -Si' + alias pacU='sudo pacman -U' + alias pacR='sudo pacman -R' + alias pacRc='sudo pacman -Rc' + alias pacRs='sudo pacman -Rs' + alias pacO='sudo pacman-optimize' + + # helpful makepkg shortcuts + alias makepkgclean='rm -r src/ pkg/ *~' + + makeoldname() { + mv $1 "${1%-*.pkg.tar.gz}.pkg.tar.gz" + } +fi + +# sanitize - set file/directory owner and permissions to normal values (644/755) +# Usage: sanitize <file> +sanitize() { + chmod -R u=rwX,go=rX "$@" + chown -R ${USER}.users "$@" +} + +# psfind - shortcut for grepping a process name +# Usage: psfind <process name> +psfind() { + ps -ef | egrep "PID|$@" +} + +# rmbackups - remove all *~ files recursively in directory +rmbackups() { + find -iname '*~' -exec rm -v {} \; +} + +# Useful aliases +alias ls='ls --color=auto' +alias ll='ls -lh' +alias la='ls -A' +alias lla='ls -lAh' +alias lr='ls -R' +alias c='clear' +alias r='reset' + +# Common misspellings +alias pdw='pwd' +alias mroe='more' +alias csv='cvs' + +# source the local config +[ -f ~/.bashrclocal ] && source ~/.bashrclocal + |