Questions tagged [input-history]
31 questions
364
votes
12 answers
How to use arguments from previous command?
I know that Esc + . gives you the last argument of the last command.
But I'm interested in first argument of the last command.
Is there a key binding to do so?
On the same lines, is there a generic way of getting the nth argument from the last…

Aman Jain
- 10,927
- 15
- 50
- 63
26
votes
4 answers
copy paste big dictionary into chrome console
what im essentially doing is
var dictionary = [ HERE I PASTE ALMOST 200k ENTRIES ]
and it throws :
Error saving setting with name: consoleHistory, value length: 8613059.
Error: Failed to set the 'consoleHistory' property on 'Storage':
Setting…

baszak
- 317
- 1
- 3
- 9
19
votes
3 answers
How to delete entries from fish shell's command history?
In an attempt to unlock the screen, I have accidentally entered my password into a terminal running the fish shell.
How can I remove it from the command history of fish again?
The solution does not need to be forensically secure. Traces left in…

Ludwig Schulze
- 2,155
- 1
- 17
- 36
17
votes
2 answers
Increase IPython history length
I have tried increasing IPython history length following this post :
Control ipython history length by changing c.TerminalInteractiveShell.history_length in ~/.ipython/profile_default/ipython_config.py.
The config file seems to be executed at…

Nihl
- 557
- 1
- 5
- 14
10
votes
2 answers
How to extract all command history in one file linux
I know how History command works in linux and also that it only displays the commands typed from terminal from that very directory in which the history command was executed,,Isn't it?My intent is to display all the commands typed(History) by me (as…

user3040487
- 181
- 1
- 3
- 7
9
votes
1 answer
How to configure the Racket interpreter to support command history?
I've just set up Racket and have been trying out the interpreter.
However, I can't seem to go up and down the command history using the arrows (or Ctrlp/Ctrln for that matter) or use Ctrlr to search through it.
Is that even supported? Can I build…

Nobilis
- 7,310
- 1
- 33
- 67
8
votes
4 answers
How to show all of minibuffer commands history in Emacs?
I see I can go back history of command by using "M-p" in minibuffer. But I want to see all of command I used in minibuffer.
Thanks.

Kei Minagawa
- 4,395
- 3
- 25
- 43
4
votes
1 answer
How to prevent save input history that begins with a space in PowerShell?
In bash (at least in Ubuntu), it is possible not to save commands starting with a space in the history (HISTCONTROL).
Is there a way to get this feature in Powershell?

loki
- 314
- 4
- 17
3
votes
4 answers
script or one-liner to clean up passwords in .bash_history
I sometimes mistakenly type my su password in a linux terminal that is echoing the typed characters. It gets recorded in ~/.bash_history which makes me feel insecure. Does anyone have a short script (bash one-liner?) to clean .bash_history of any…

hobs
- 18,473
- 10
- 83
- 106
3
votes
1 answer
Javascript: Is there any way to clear history of user input?
I'm creating a Simon Says game where the pattern gets progressively longer as the user gets the pattern correct, but the input history shows their previous pattern inputs. How do I clear this history?
This code is on the CodeHS site. I've researched…

Mizzmox
- 31
- 2
3
votes
3 answers
JavaScript detection of keypress context (form history selection vs. form submit)
I'm writing a semi-generic form plugin using jQuery in order to speed up the development of the project I'm working on.
The plan is that a jTemplates template contains the fields, my plugin looks through the template to find any required…

tags2k
- 82,117
- 31
- 79
- 106
2
votes
1 answer
Make Ctrl-p and Ctrl-n search the shell history filtered by typed characters
I love that emacs key bindings also work in the ubuntu shell by default. However, I would also like to have those two keys partially search through the shell history but filtered based on what was already typed in. If enabled in /etc/inputrc, the…

CD86
- 979
- 10
- 27
2
votes
1 answer
Clear fish shell history permanently across sessions
I am trying to convert some bash dotfiles to their fish equivalents.
I have a ~/.bash_logout that looks like this:
# Flush the in-memory history, then persist the emptiness to disk.
history -c && history -w;
While fish does have a history command,…

Seth Holladay
- 8,951
- 3
- 34
- 43
2
votes
2 answers
missing sqlite3 history file
I cannot find the command history created by sqlite3.
I have both Windows and Cygwin version.
Using the Windows binary, I can use up/down arrow to see previous commands, even from previous runs of command. But I can't find the file…

Miserable Variable
- 28,432
- 15
- 72
- 133
1
vote
1 answer
Why won't Photoshop revert to earlier history state in script?
I've written an Applescript to automate watermarking and resizing images for my company. Everything generally works fine — the script saves the initial history state to a variable, resizes the image, adds the appropriate watermark, saves off a jpeg,…

jefflovejapan
- 2,047
- 3
- 20
- 34