PS1 does not update hostname in virtual instanceChanging behavior of bash prompt when functioning as rootNeed help with MPV bash scriptScript in ~/.bashrc works when manually executed, but not otherwiseGit branch name in bash shell don't disappear on non git directoriesMove and rename files that have no name extensionPrompt doesn't update git branchDelete first words from all folder names in directoryWrapping lines bugs when trying to colour terminal PS1 (even when escaping non printing caracters)
Why is coffee provided during big chess events when it contains a banned substance?
Island of Knights, Knaves, Spies
Making part of lines layer transparent based on circle
How can I cut a metal pipe while preserving the wires inside?
The colors in Resident Evil 7 are *completely* off
d-Menthol vs dl-menthol: Does an enantiomer and its racemic mixture have different melting points?
Congruence of angles axiom
How can I find out a substance name based on its structural formula?
Connect Mac CD drive to another Mac
Match the blocks
Can the bass be used instead of drums?
Having trouble with accidentals - Note-for-note vs traditional?
Will the size of Bitcoin core full-node be too big to run on a normal computer?
Diamondize Some Text
Rationalism and Catholicism / Protestantism
Map from a classifying space to a stack
Can digital computers understand infinity?
What's the current zodiac?
I didn't do any exit passport control when leaving Japan. What should I do?
Why does English employ double possessive pronouns such as theirs and ours?
How to respond when insulted by a grad student in a different department?
How much income am I getting by renting my house?
String Operation to Split on Punctuation
How to handle shared mortgage payment if one person can't pay their share?
PS1 does not update hostname in virtual instance
Changing behavior of bash prompt when functioning as rootNeed help with MPV bash scriptScript in ~/.bashrc works when manually executed, but not otherwiseGit branch name in bash shell don't disappear on non git directoriesMove and rename files that have no name extensionPrompt doesn't update git branchDelete first words from all folder names in directoryWrapping lines bugs when trying to colour terminal PS1 (even when escaping non printing caracters)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I'm currently working on a virtual instance called virtual4.1. I changed PS1 in my bash script to color the current directory that I'm in. However, running source ~/.bashrc
changes the instance hostname from virtual4.1
to a bunch of numbers and letters. Is is possible to keep the original virtual hostname without having the terminal default to something else? This is what I have for PS1:
PS1='[u@h e[1;34mWe[0m]$ '
command-line bash ps1
add a comment
|
I'm currently working on a virtual instance called virtual4.1. I changed PS1 in my bash script to color the current directory that I'm in. However, running source ~/.bashrc
changes the instance hostname from virtual4.1
to a bunch of numbers and letters. Is is possible to keep the original virtual hostname without having the terminal default to something else? This is what I have for PS1:
PS1='[u@h e[1;34mWe[0m]$ '
command-line bash ps1
add a comment
|
I'm currently working on a virtual instance called virtual4.1. I changed PS1 in my bash script to color the current directory that I'm in. However, running source ~/.bashrc
changes the instance hostname from virtual4.1
to a bunch of numbers and letters. Is is possible to keep the original virtual hostname without having the terminal default to something else? This is what I have for PS1:
PS1='[u@h e[1;34mWe[0m]$ '
command-line bash ps1
I'm currently working on a virtual instance called virtual4.1. I changed PS1 in my bash script to color the current directory that I'm in. However, running source ~/.bashrc
changes the instance hostname from virtual4.1
to a bunch of numbers and letters. Is is possible to keep the original virtual hostname without having the terminal default to something else? This is what I have for PS1:
PS1='[u@h e[1;34mWe[0m]$ '
command-line bash ps1
command-line bash ps1
edited May 2 at 19:00
Kevin Jiang
asked May 2 at 18:54
Kevin JiangKevin Jiang
12 bronze badges
12 bronze badges
add a comment
|
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1140057%2fps1-does-not-update-hostname-in-virtual-instance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1140057%2fps1-does-not-update-hostname-in-virtual-instance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown