Skip to main content

All Questions

1 vote
2 answers
167 views

like history and fc but for a personalized list of useful commands

I have spent a few hours trying to get an easy access to my most useful commands I have to use in a certain environment, I have the "incredible" idea of using history for that purpose, to ...
JustLolo's user avatar
0 votes
0 answers
109 views

How can I make bash not repeatedly cut its history file

I just want the .bash_history file to store a lot of history, like $HISTSIZE=10000000, $HISTFILESIZE=10000000 which I have set months ago. It does not work. I just tried ^R <some old command>, ...
scriptfoo's user avatar
  • 101
1 vote
1 answer
59 views

How to have bash' history as the same as the preceding Bash'?

How to have bash' history as the same as the preceding Bash'? Few last history of bash is demanded to be so in the following but fail $ bash -lc 'find . -iname \*.c; bash -l' #or $ bash -lc '...
user avatar
2 votes
1 answer
1k views

HISTFILE env var unset within programs. Can I access it in any way? [duplicate]

When I try to access the "HISTFILE" env var within a program, it isn't there $ echo $HISTFILE /Users/drewgross/.bash_history $ python Python 2.7.10 (default, Oct 23 2015, 19:19:21) [GCC 4.2.1 ...
Drew's user avatar
  • 165