535 reputation
216
bio website
location
age
visits member for 3 years, 1 month
seen 6 hours ago

23h
asked Different between `ulimit -e` and `renice`?
Jul
12
comment bash does not autocomplete my command when using sudo?
@MarkPlotnick: if you type sudo mkdir <tab><tab>, does it show a list of directories? --> Yes, see my update in the original question.
Jul
12
revised bash does not autocomplete my command when using sudo?
added 4298 characters in body
Jul
8
accepted How to set the tab name to an alias hostname of the remote host I'm connected to?
Jul
7
asked bash does not autocomplete my command when using sudo?
Jun
10
awarded  Caucus
Jun
7
revised How to set the tab name to an alias hostname of the remote host I'm connected to?
deleted 4 characters in body
Jun
6
comment How to set the tab name to an alias hostname of the remote host I'm connected to?
There is a dilemma here: if I use ssh wrapper, it works as expect with some hosts but ctrl-D close the tab. If not, I have to set the PS1 on the remote hosts. Any better way?
Jun
6
comment How to set the tab name to an alias hostname of the remote host I'm connected to?
It has the same value as I posted \[\]\[\][\[\]\t\[\]] \u\[\]@\[\]\h\[\]\[\]:\[\]\w\[\] \[\]. One more question: with my above ssh wrapper, whenever I press ctrl-D or type exit it close my tab instead of close the session and return the local prompt(quanta@MacBook-Pro).
Jun
6
comment How to set the tab name to an alias hostname of the remote host I'm connected to?
+1. I know that I can do this or simply change the hostname on the remote host, but why it does not happen with other hosts (that has PS1 is set to \[\]\[\][\[\]\t\[\]] \u\[\]@\[\]\h\[\]\[\]:\[\]\w\[\] \[\]? See my updated question.
Jun
6
revised How to set the tab name to an alias hostname of the remote host I'm connected to?
added 489 characters in body
Jun
6
revised How to set the tab name to an alias hostname of the remote host I'm connected to?
added 8 characters in body
Jun
6
revised How to set the tab name to an alias hostname of the remote host I'm connected to?
added 484 characters in body
Jun
6
comment How to set the tab name to an alias hostname of the remote host I'm connected to?
@Gnouc: yes. But notice that I don't want the tab name is something like quanta@MacBook-Pro... when I'm on localhost.
Jun
6
comment How to set the tab name to an alias hostname of the remote host I'm connected to?
@sr_: I know that command, it does not help in this case. The thing is when I opened multiple tabs, I would like to quick switch to a specific tab by pressing <kbd>command</kbd> + tab number.
Jun
6
comment How to set the tab name to an alias hostname of the remote host I'm connected to?
@Gnouc: set to what? How can I take the first argument when ssh and put it into PROMPT_COMMAND? My current setting: export PROMPT_COMMAND='echo -ne "\033]0;$(basename "$(dirname "$PWD")")/${PWD##*/}\007"'.
Jun
6
asked How to set the tab name to an alias hostname of the remote host I'm connected to?
Mar
17
awarded  Popular Question
Nov
13
awarded  Popular Question
Oct
16
awarded  Popular Question