|
Question: For typed in commands invoked via M-x I am having difficulty understanding how Emacs allows recalling and rerunning the commands. The command-history works quite differently from Vim. It puts the commands in a buffer rather than the "minibuffer...
Started by dreftymac on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Look at EMACS manual (info) section 9.4 Minibuffer History can type something....
C-x z repeats the last command.
M-x list-command-history puts the whole history in a buffer from which you can execute commands.
With the arrow keys.
|
|
I know this is supposed to output what kind of shell I'm using, which I think it does, because it outputs "bash-3.2", but it doesn't quite do that, because it actually changes my prompt to "bash-3.2$". What else is going on? When I do Ctrl+D, I go back...
Started by Bialecki on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Running simply " $SHELL " at....
If you want to just see what's IN the variable, type
$ echo $SHELL variable.
So it runs the executable.
So when you type executable.
All $SHELL is a macro or shell variable that contains the name of the shell .
|
|
Is there any way to disable the "Press ENTER or type command to continue" prompt that appears after executing an external command?
EDIT: Found a workaround: Add an extra <CR> to the shortcut in my .lvimrc.
map <F5> :wall!<CR>:!sbcl -...
Started by kotlinski on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm not sure how to do it globally though for one command:
:silent!<command>
:help hit-enter.
|
Ask your Facebook Friends
|
Say I have a program called program.exe, and I want to run it from the command line. Assume further that I'm at the command prompt, and in the same directory as the program.exe
For some reason, I cannot run the program by typing:
program
Rather, I have...
Started by ShaChris23 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
Copy is a built-in to the ....
I assume you're familiar with editing your PATH, however;.BAT;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PCS1
When you run program , the command interpreter will look what you're seeing.
Copy is an inbuilt command, indeed.
|
|
For instance, netstat. This doesn't show up when you type help, but netstat /? does provide the information.
Are there any other commands that will not get listed?
Also, the command netstat /? > netstat.txt won't work. Any idea why?
The netstat.txt...
Started by WebDevHobo on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
There will be a large number of other executables in this folder (and others in the Windows tree) that won't show up when you type help from within thought, so +1 as I have learnt a bit here....
Rather than being a command within cmd.exe .
|
|
So I have this (bad) habit of typing git , pausing for a sec to glance at the output of the git status command I just typed, then typing git add ... afterwards, resulting in the rather unsuccessful git git add ... .
Is there any functionality of zsh that...
Started by Rufo Sanchez on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
For all bourne shells:
git(){ if [ "$1" = git ]; then shift; fi; command git "$@"; }.
|
|
I want to execute a custom command against a typed dataset I created using the dataset designer. For this I need to get a reference to the underlying connection, right? How to go about this? In which autogenerated file can I find the connection?
Started by Dabblernl on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
And execute your command } } }
typedTableAdapter ta = new.
|
|
When I'm typing a command longer than around 20 characters the text disappears and the cursor moves to a different location in the terminal. How do I stop this? I find it difficult to understand what I'm doing when this happens.
Started by Michael Barton on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
For OS X Terminal.app, this term type works well for most.
All your ~/.zsh* files and start with a blank environment?
There could be an incorrect TERM type, resulting in incorrect cursor positioning.
|
|
I used the command tar -x file.tar.gz and, for one reason or anything it failed. Then I get stuck being able to type anything in, but not being able to run any more commands. Pressing enter just gives me a new line. I don't know how to break out of it...
Started by damnitshot on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
That way, ....
Try this
tar -zxf file.tar.gz
Your command failed because it is trying to read be to use GNU screen .
Try hitting CTRL+C :) This will cancel/kill/stop the running command!
But the best way to untar not gunzipping the archive.
|
|
Basically, I'm looking for something like Windirstat that works well on the command line and is easy to distribute over a network.
I've tried sysinternals du (can't exclude/include file types), diruse (limited like du), cygwin du (too slow). I've also...
Started by menko on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Surely, this could be done more efficiently if you would like to do this for every type.
In doc xls jpg mov; do combined=0 find /cygdrive/c -name "*.$filetype" -type f -print0 | xargs -0 du -k; it's not tested.
|