Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 433aaede3c
Fetching contributors…

Cannot retrieve contributors at this time

97 lines (82 sloc) 2.065 kb
#
# ~/.profile
#
# this file is only read for login shells
# TODO: figure out how to handle locale settings
# LESS_TERMCAP is undocumented. See if there is a better way.
# TODO: when setting BROWSER, EDITOR, and EDIT, handle the case where my defaults do not exist
#
# setup environment variables
#
# POSIX standard environment variables:
# ENV
# FCEDIT
# HISTFILE
# HISTSIZE
# HOME
# IFS
# LANG
# LC_ALL
# LC_COLLATE
# LC_CTYPE
# LC_MESSAGES
# MAIL
# MAILCHECK
# MAILPATH
# PATH
# PWD
if [ "$DISPLAY" ]
then
# set environment variables if running in X
# set the default editor
export EDITOR=gvim
export EDIT=gvim
export VISUAL=gvim
# intellij requires a JDK_HOME variable
export JDK_HOME=$JAVA_HOME
# get anti-aliased fonts in java applications
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"
# let java know where some fonts are
export JAVA_FONTS=/usr/share/fonts/TTF
# set the default web browser
export BROWSER=firefox
else
# set environment variables if not running in X
export EDITOR=vim
export EDIT=vim
export VISUAL=vim
export BROWSER=links
fi
# inputrc customizes keybindings
if [ -f $HOME/.inputrc ]
then
export INPUTRC=$HOME/.inputrc
fi
# set the infinality font settings
if [ -f /etc/profile.d/infinality-settings.sh ]
then
source /etc/profile.d/infinality-settings.sh
fi
# specify a video format for dvdauthor
export VIDEO_FORMAT=NTSC
# this can't be changed later if i set it here...
export LC_ALL="en_US.UTF-8"
#colorized grep output
export GREP_COLOR="1;33"
# setup colored man output using the less pager
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;37m")
LESS_TERMCAP_md=$(printf "\e[1;37m")
LESS_TERMCAP_me=$(printf "\e[0m")
LESS_TERMCAP_se=$(printf "\e[0m")
LESS_TERMCAP_so=$(printf "\e[1;47;30m")
LESS_TERMCAP_ue=$(printf "\e[0m")
LESS_TERMCAP_us=$(printf "\e[0;36m")
man "@"
}
export PAGER='less -R'
#add ~/bin to path
export PATH=$HOME/bin:$PATH
# if the shell is interactive, and ~/.bashrc is readable, then source it
case "$-" in *i*) if [ -r ~/.bashrc ]; then . ~/.bashrc; fi;; esac
Jump to Line
Something went wrong with that request. Please try again.