Skip to main content
Question Protected by desertnaut
added 1 character in body
Source Link
nonopolarity
  • 149.4k
  • 135
  • 484
  • 769

In this particular case, I'd like to add a confirm in Bash for

Are you sure? [Y/n]

for Mercurial's hg push ssh://[email protected]//somepath/morepath, which is actually an alias. Is there a standard command that can be added to the alias to achieve it?

The reason is that hg push and hg out can sound similar and sometimes when I want hgoutrepo, I may accidentlly type hgpushrepo (both are aliases).

Update: if it can be something like a built-in command with another command, such as: confirm &&& hg push ssh://... that'd be great... just a command that can ask for a yes or no and continue with the rest if yes.

In this particular case, I'd like to add a confirm in Bash for

Are you sure? [Y/n]

for Mercurial's hg push ssh://[email protected]//somepath/morepath, which is actually an alias. Is there a standard command that can be added to the alias to achieve it?

The reason is that hg push and hg out can sound similar and sometimes when I want hgoutrepo, I may accidentlly type hgpushrepo (both are aliases).

Update: if it can be something like a built-in command with another command, such as: confirm & hg push ssh://... that'd be great... just a command that can ask for a yes or no and continue with the rest if yes.

In this particular case, I'd like to add a confirm in Bash for

Are you sure? [Y/n]

for Mercurial's hg push ssh://[email protected]//somepath/morepath, which is actually an alias. Is there a standard command that can be added to the alias to achieve it?

The reason is that hg push and hg out can sound similar and sometimes when I want hgoutrepo, I may accidentlly type hgpushrepo (both are aliases).

Update: if it can be something like a built-in command with another command, such as: confirm && hg push ssh://... that'd be great... just a command that can ask for a yes or no and continue with the rest if yes.

added 15 characters in body
Source Link
nonopolarity
  • 149.4k
  • 135
  • 484
  • 769

In this particular case, I'd like to add a confirm in Bash for

Are you sure? [Y/n]

for Mercurial's hg push ssh://[email protected]//somepath/morepath, which is actually an alias. Is there a standard command that can be added to the alias to achieve it?

The reason is that hg push and hg out can sound similar and sometimes when I want hgoutrepo, I may accidentlly type hgpushrepo (both are aliases).

Update: if it can be something like a built-in command with another command, such as: confirm & hg push ssh://... that'd be great... just 1a command that can ask for a yes or no and continue with the rest if soyes.

In this particular case, I'd like to add a confirm in Bash for

Are you sure? [Y/n]

for Mercurial's hg push ssh://[email protected]//somepath/morepath, which is actually an alias. Is there a standard command that can be added to the alias to achieve it?

The reason is that hg push and hg out can sound similar and sometimes when I want hgoutrepo, I may accidentlly type hgpushrepo (both are aliases).

Update: if it can be something like a built-in command with another command, such as: confirm & hg push ssh://... that'd be great... just 1 command that ask for a yes and continue with the rest if so.

In this particular case, I'd like to add a confirm in Bash for

Are you sure? [Y/n]

for Mercurial's hg push ssh://[email protected]//somepath/morepath, which is actually an alias. Is there a standard command that can be added to the alias to achieve it?

The reason is that hg push and hg out can sound similar and sometimes when I want hgoutrepo, I may accidentlly type hgpushrepo (both are aliases).

Update: if it can be something like a built-in command with another command, such as: confirm & hg push ssh://... that'd be great... just a command that can ask for a yes or no and continue with the rest if yes.

added 11 characters in body
Source Link
Zombo
  • 1
  • 66
  • 403
  • 423

In this particular case, I'd like to add a confirm in Bash for

Are you sure? [Y/n]

Are you sure? [Y/n]

for Mercurial's hg push ssh://[email protected]//somepath/morepath, which is actually an alias. Is there a standard command that can be added to the alias to achieve it?

The reason is that hg push and hg out can sound similar and sometimes when I want hgoutrepo, I may accidentlly type hgpushrepo (both are aliases).

Update: if it can be something like a built-in command with another command, such as: confirm & hg push ssh://... that'd be great... just 1 command that ask for a yes and continue with the rest if so.

In this particular case, I'd like to add a confirm in Bash for

Are you sure? [Y/n]

for Mercurial's hg push ssh://[email protected]//somepath/morepath, which is actually an alias. Is there a standard command that can be added to the alias to achieve it?

The reason is that hg push and hg out can sound similar and sometimes when I want hgoutrepo, I may accidentlly type hgpushrepo (both are aliases).

Update: if it can be something like a built-in command with another command, such as: confirm & hg push ssh://... that'd be great... just 1 command that ask for a yes and continue with the rest if so.

In this particular case, I'd like to add a confirm in Bash for


Are you sure? [Y/n]

for Mercurial's hg push ssh://[email protected]//somepath/morepath, which is actually an alias. Is there a standard command that can be added to the alias to achieve it?

The reason is that hg push and hg out can sound similar and sometimes when I want hgoutrepo, I may accidentlly type hgpushrepo (both are aliases).

Update: if it can be something like a built-in command with another command, such as: confirm & hg push ssh://... that'd be great... just 1 command that ask for a yes and continue with the rest if so.

added 3 characters in body
Source Link
nonopolarity
  • 149.4k
  • 135
  • 484
  • 769
Loading
added 50 characters in body
Source Link
nonopolarity
  • 149.4k
  • 135
  • 484
  • 769
Loading
added 158 characters in body
Source Link
nonopolarity
  • 149.4k
  • 135
  • 484
  • 769
Loading
Source Link
nonopolarity
  • 149.4k
  • 135
  • 484
  • 769
Loading