Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2013 07:59:51 -0500
From:      Dimitri Yioulos <dyioulos@onpointfc.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Bash history empty on login
Message-ID:  <201301080759.52247.dyioulos@onpointfc.com>
In-Reply-To: <op.wqkfn7omqdqf40@desktop.drenet.local>
References:  <op.wqkfn7omqdqf40@desktop.drenet.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 07 January 2013 7:01:09 pm Andre Goree wrote:
> I'm not sure what's going on, as I've never had an issue
> like this in my years of using FreeBSD nor Linux.  Each
> time I login, my history file is empty!  I'm not sure
> what could be causing this, but below [1] is my .bashrc. 
> I had ". ~/.bashrc" in ~/.profile, but I removed it while
> I'm trying to troubleshoot this issue.  Does anyone have
> an idea or a direction to point me in?  Thanks in
> advance.
>
> [1]#
> # ~/.bashrc
> #
>
> # If not running interactively, don't do anything
> [[ $- != *i* ]] && return
>
> #PS1='[\u@\h \W]\$ '
>
> alias ls='ls -G'
> alias ll='ls -lAhp'
> alias umount='sudo umount'
> alias grep='grep --color'
> alias nmap='sudo nmap'
> alias updatedb='sudo updatedb'
> alias pkg_add='sudo pkg_add'
> alias pkg_delete='sudo pkg_delete'
> alias top='top -aPStzj -s 1'
> alias portinstall='sudo portinstall'
> alias updatedb='sudo updatedb'
>
> PS1='\[\e[1;37m\][\u@\h \W]\$\[\e[0m\] '
>
> export PATH=$PATH:/home/agoree/bin:/usr/local/kde4/bin/
>
> #BASH history
> export HISTTIMEFORMAT="%h/%d - %H:%M:%S "
> export HISTFILESIZE=100000
> #export VBOX_USB=usbfs
>
> --

Hope I'm not offending you if the following are things 
you've tried as a matter-of-course:

After booting up, is history started, or do you have to do 
that manually?  Have you run "set -o" to see if history is 
enabled?  If it isn't, then "set -o history".  Is a "clear" 
command being issued from anywhere upon logout or reboot?

Just some thoughts.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301080759.52247.dyioulos>