Bash history empty on login
Dimitri Yioulos
dyioulos at onpointfc.com
Tue Jan 8 13:00:31 UTC 2013
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.
More information about the freebsd-questions
mailing list