view bashrc @ 34:fef6a877a28b

Tweak smilies to be slightly more fitting to intent from ASCII code
author IBBoard <dev@ibboard.co.uk>
date Wed, 14 Sep 2016 20:26:21 +0100
parents c67aa2af6ff2
children 066d31abcee4
line wrap: on
line source

if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# Use bash-completion, if available
if [ -f /etc/bash_completion ]; then
	. /etc/bash_completion
fi

# Use a sane editor
export EDITOR=/usr/bin/nano

#Import aliases
test -s ~/.alias && . ~/.alias || true

# Add sbins to path to make life easier (e.g. /sbin/ifconfig)
export PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH

#Disable man page number prompts - where there's more than one, we normally want the default (user command) version
export MAN_POSIXLY_CORRECT=1

#Disable less history, because do I really search the same things enough to use it across sessions?
export LESSHISTFILE=-

export XDG_CACHE_HOME="$HOME/.cache"

if [ "$PS1" != "" -a "${STARTED_TMUX:-x}" = x -a "${SSH_TTY:-x}" != x ]
then
        STARTED_TMUX=1; export STARTED_TMUX
        sleep 1
        ( (tmux has-session -t remote && tmux attach-session -t remote) || (tmux new-session -s remote) ) && exit 0
        echo "tmux failed to start"
fi

export GTK_IM_MODULE=ibus