Merge branch 'master' of github.com:Mkaysi/shell-things

This commit is contained in:
Mika Suomalainen 2012-09-16 19:20:08 +03:00
commit 56150ab285
5 changed files with 35 additions and 19 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
# It seems that running install.sh causes <filename>~ files in this git repo. They are lockfiles.
*~
*.swp
pgprules.xml

16
bashrc
View File

@ -6,6 +6,9 @@
# Aliases RJ706I
# Functions ZGC5QQ
# $uname should tell which OS is used.
$uname=`uname`
# For Mac OS X + SSH sessions. bashrc must be sourced by hand at least once.
echo "if [ -f ~/.bashrc ]; then
source ~/.bashrc
@ -136,12 +139,6 @@ hostname && uptime
# Source before mentioned locations if they exist.
# Don't check for mail!
unset MAILCHECK
# Enable core files.
ulimit -c unlimited
# .environment
if [ -f ~/.environment ]; then
source ~/.environment
@ -152,6 +149,13 @@ if [ -f ~/.bash_environment ]; then
source ~/.bash_environment
fi
# Don't check for mail!
unset MAILCHECK
# Enable core files.
ulimit -c unlimited
# More colours :D
if [[ $TERM == 'xterm' ]]; then
export TERM=xterm-256color

View File

@ -1,13 +1,18 @@
uname=`uname`
command -v \youtube-dl >/dev/null 2>&1 || { echo >&2 "shell-things contains youtube-dl alias for automatically setting video title as name, so you might want to install youtube-dl."; }
command -v \gtk-redshift >/dev/null 2>&1 || { echo >&2 "xsessionrc tries to start gtk-redshift automatically on boot, so you might want to install it (or redshift in some distributions)."; }
if [ $uname = "linux" ]
then
command -v \gtk-redshift >/dev/null 2>&1 || { echo >&2 "xsessionrc tries to start gtk-redshift automatically on boot, so you might want to install it (or redshift in some distributions)."; }
fi
if [ ! -f /usr/share/doc/gnupg-curl/copyright ]
then
echo "You might want to install gnupg-curl. It allows you to use shortened URLs with gpg1."
echo "You might want to install gnupg-curl. It allows you to use shortened URLs with gpg1." && echo "If you aren't on Linux, you can ignore this."
fi
if [ ! -f /usr/share/doc/popularity-contest/copyright ]
then
echo "You might want to install popularity-contest. See http://popcon.debian.org/"
echo "You might want to install popularity-contest. See http://popcon.debian.org/" && echo "If you aren't on Linux you can ignore this."
fi

10
vimrc
View File

@ -81,9 +81,6 @@ runtime macros/matchit.vim
set wildmenu
set wildmode=list:longest
" Set terminal title (This probably helps with tmux)
set title
" Flash, do not beep!
set visualbell
" End of copied from http://items.sjbach.com/319/configuring-vim-right
@ -92,3 +89,10 @@ set visualbell
if has('gui_running')
set background=light
endif
if has("unix")
let s:uname = system("uname")
if s:uname == "Darwin\n"
set background=light
endif
endif

16
zshrc
View File

@ -6,6 +6,9 @@
# Aliases RJ706I
# Functions ZGC5QQ
# uname should be readable in $uname
uname=`uname`
##### Defaults etc... M0TZLS #####
# This is based on zshrc which came with Debian (Third option in wizard for new users.)
@ -58,12 +61,6 @@ hostname && uptime
# Source before mentioned locations if they exist.
# Don't check for mail!
unset MAILCHECK
# Enable core files
ulimit -c unlimited
# .environment
if [ -f ~/.environment ]; then
source ~/.environment
@ -79,6 +76,13 @@ if [ -f ~/.zshenv ]; then
source ~/.zshenv
fi
# Don't check for mail!
unset MAILCHECK
# Enable core files.
ulimit -c unlimited
#More colours :D
if [[ $TERM == 'xterm' ]]; then
export TERM=xterm-256color