comparison bashrc @ 19:170de0d0d6dd

Stop less creating a history file
author IBBoard <dev@ibboard.co.uk>
date Mon, 08 Sep 2014 20:09:55 +0100
parents e6a261f18fb1
children ea572e660598
comparison
equal deleted inserted replaced
18:1ec9a1720c5c 19:170de0d0d6dd
10 export EDITOR=/usr/bin/nano 10 export EDITOR=/usr/bin/nano
11 test -s ~/.alias && . ~/.alias || true 11 test -s ~/.alias && . ~/.alias || true
12 export PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH 12 export PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
13 export MAN_POSIXLY_CORRECT=1 13 export MAN_POSIXLY_CORRECT=1
14 14
15 #Disable less history, because do I really search the same things enough to use it across sessions?
16 export LESSHISTFILE=-
17
15 if [ "$PS1" != "" -a "${STARTED_TMUX:-x}" = x -a "${SSH_TTY:-x}" != x ] 18 if [ "$PS1" != "" -a "${STARTED_TMUX:-x}" = x -a "${SSH_TTY:-x}" != x ]
16 then 19 then
17 STARTED_TMUX=1; export STARTED_TMUX 20 STARTED_TMUX=1; export STARTED_TMUX
18 sleep 1 21 sleep 1
19 ( (tmux has-session -t remote && tmux attach-session -t remote) || (tmux new-session -s remote) ) && exit 0 22 ( (tmux has-session -t remote && tmux attach-session -t remote) || (tmux new-session -s remote) ) && exit 0