Get rid of name and hostname in a terminal prompt
up vote
0
down vote
favorite
I use powerline-shell and my prompt looks like:
.
How can I get rid of my name and hostname in the prompt?
I tried to search in .bashrc
file for PS1
variables:
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u[33[00m]:[33[01;34m]w[33[00m]$ '
else
PS1='${debian_chroot:+($debian_chroot)}u:w$ '
fi
Which I have to edit to the goal?
customization bashrc ps1 powerline-plugin
add a comment |
up vote
0
down vote
favorite
I use powerline-shell and my prompt looks like:
.
How can I get rid of my name and hostname in the prompt?
I tried to search in .bashrc
file for PS1
variables:
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u[33[00m]:[33[01;34m]w[33[00m]$ '
else
PS1='${debian_chroot:+($debian_chroot)}u:w$ '
fi
Which I have to edit to the goal?
customization bashrc ps1 powerline-plugin
3
Since you are using powerline-shell, which claims to provide "A beautiful and useful prompt for your shell [that is] easy to customize and extend", then I would venture that the answer to your question is in the powerline-shell documentation. It almost certainly won't help to change your bash prompt, as the whole point of prompt beautifiers is that they replace the bash prompt.
– zwets
Aug 7 at 22:13
1
Well the sequence for hostname would beh
- so for example the default Ubuntu~/.bashrc
(copied from/etc/skel/.bashrc
) includesu@h
in itsPS1
string - yours does not appear to do the same
– steeldriver
Aug 7 at 22:49
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I use powerline-shell and my prompt looks like:
.
How can I get rid of my name and hostname in the prompt?
I tried to search in .bashrc
file for PS1
variables:
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u[33[00m]:[33[01;34m]w[33[00m]$ '
else
PS1='${debian_chroot:+($debian_chroot)}u:w$ '
fi
Which I have to edit to the goal?
customization bashrc ps1 powerline-plugin
I use powerline-shell and my prompt looks like:
.
How can I get rid of my name and hostname in the prompt?
I tried to search in .bashrc
file for PS1
variables:
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u[33[00m]:[33[01;34m]w[33[00m]$ '
else
PS1='${debian_chroot:+($debian_chroot)}u:w$ '
fi
Which I have to edit to the goal?
customization bashrc ps1 powerline-plugin
customization bashrc ps1 powerline-plugin
asked Aug 7 at 22:00
Roma Karageorgievich
1013
1013
3
Since you are using powerline-shell, which claims to provide "A beautiful and useful prompt for your shell [that is] easy to customize and extend", then I would venture that the answer to your question is in the powerline-shell documentation. It almost certainly won't help to change your bash prompt, as the whole point of prompt beautifiers is that they replace the bash prompt.
– zwets
Aug 7 at 22:13
1
Well the sequence for hostname would beh
- so for example the default Ubuntu~/.bashrc
(copied from/etc/skel/.bashrc
) includesu@h
in itsPS1
string - yours does not appear to do the same
– steeldriver
Aug 7 at 22:49
add a comment |
3
Since you are using powerline-shell, which claims to provide "A beautiful and useful prompt for your shell [that is] easy to customize and extend", then I would venture that the answer to your question is in the powerline-shell documentation. It almost certainly won't help to change your bash prompt, as the whole point of prompt beautifiers is that they replace the bash prompt.
– zwets
Aug 7 at 22:13
1
Well the sequence for hostname would beh
- so for example the default Ubuntu~/.bashrc
(copied from/etc/skel/.bashrc
) includesu@h
in itsPS1
string - yours does not appear to do the same
– steeldriver
Aug 7 at 22:49
3
3
Since you are using powerline-shell, which claims to provide "A beautiful and useful prompt for your shell [that is] easy to customize and extend", then I would venture that the answer to your question is in the powerline-shell documentation. It almost certainly won't help to change your bash prompt, as the whole point of prompt beautifiers is that they replace the bash prompt.
– zwets
Aug 7 at 22:13
Since you are using powerline-shell, which claims to provide "A beautiful and useful prompt for your shell [that is] easy to customize and extend", then I would venture that the answer to your question is in the powerline-shell documentation. It almost certainly won't help to change your bash prompt, as the whole point of prompt beautifiers is that they replace the bash prompt.
– zwets
Aug 7 at 22:13
1
1
Well the sequence for hostname would be
h
- so for example the default Ubuntu ~/.bashrc
(copied from /etc/skel/.bashrc
) includes u@h
in its PS1
string - yours does not appear to do the same– steeldriver
Aug 7 at 22:49
Well the sequence for hostname would be
h
- so for example the default Ubuntu ~/.bashrc
(copied from /etc/skel/.bashrc
) includes u@h
in its PS1
string - yours does not appear to do the same– steeldriver
Aug 7 at 22:49
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You need to change this in your powerline config file which is normally located under ~/.config/powerline-shell/config.json
.
If you haven't one yet you can create one using the following commands:
mkdir -p ~/.config/powerline-shell
powerline-shell --generate-config > ~/.config/powerline-shell/config.json
Then simply remove the segments you dont want like username
or hostname
.
For more information see the docs
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You need to change this in your powerline config file which is normally located under ~/.config/powerline-shell/config.json
.
If you haven't one yet you can create one using the following commands:
mkdir -p ~/.config/powerline-shell
powerline-shell --generate-config > ~/.config/powerline-shell/config.json
Then simply remove the segments you dont want like username
or hostname
.
For more information see the docs
add a comment |
up vote
0
down vote
You need to change this in your powerline config file which is normally located under ~/.config/powerline-shell/config.json
.
If you haven't one yet you can create one using the following commands:
mkdir -p ~/.config/powerline-shell
powerline-shell --generate-config > ~/.config/powerline-shell/config.json
Then simply remove the segments you dont want like username
or hostname
.
For more information see the docs
add a comment |
up vote
0
down vote
up vote
0
down vote
You need to change this in your powerline config file which is normally located under ~/.config/powerline-shell/config.json
.
If you haven't one yet you can create one using the following commands:
mkdir -p ~/.config/powerline-shell
powerline-shell --generate-config > ~/.config/powerline-shell/config.json
Then simply remove the segments you dont want like username
or hostname
.
For more information see the docs
You need to change this in your powerline config file which is normally located under ~/.config/powerline-shell/config.json
.
If you haven't one yet you can create one using the following commands:
mkdir -p ~/.config/powerline-shell
powerline-shell --generate-config > ~/.config/powerline-shell/config.json
Then simply remove the segments you dont want like username
or hostname
.
For more information see the docs
answered Nov 18 at 18:04
choise
9817
9817
add a comment |
add a comment |
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%2f1063344%2fget-rid-of-name-and-hostname-in-a-terminal-prompt%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
3
Since you are using powerline-shell, which claims to provide "A beautiful and useful prompt for your shell [that is] easy to customize and extend", then I would venture that the answer to your question is in the powerline-shell documentation. It almost certainly won't help to change your bash prompt, as the whole point of prompt beautifiers is that they replace the bash prompt.
– zwets
Aug 7 at 22:13
1
Well the sequence for hostname would be
h
- so for example the default Ubuntu~/.bashrc
(copied from/etc/skel/.bashrc
) includesu@h
in itsPS1
string - yours does not appear to do the same– steeldriver
Aug 7 at 22:49