LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-12-2021, 03:20 PM   #106
MeCrumbly429
LQ Newbie
 
Registered: Jul 2020
Location: East hill-meridian, Renton, WA
Distribution: Arch Linux, Slackware -current, CRUX Linux
Posts: 26

Rep: Reputation: Disabled

...
why?
 
Old 05-15-2021, 10:22 PM   #107
W4UF
LQ Newbie
 
Registered: Dec 2020
Posts: 2

Rep: Reputation: Disabled
I have to admire you guys...

I'm in the process of rescuing my information from the grips of MS Win 7. Been experimenting with Linux Mint for about 2 months. Currently working off of a full 20.1/Cinnamon install on a USB. Forgive me for not being more useful to this conversation. But I'm just happy to be HERE for now. I'm still trying to forget "C:'Backslash'". My best regards to each of you.
 
Old 05-16-2021, 01:43 AM   #108
FrenchGuy
LQ Newbie
 
Registered: Oct 2008
Location: Toulouse, France
Distribution: Arch
Posts: 18

Rep: Reputation: 8
Welcome on board !
 
Old 05-16-2021, 05:18 PM   #109
rogerxx
Member
 
Registered: Feb 2021
Location: Ohio
Distribution: Gentoo & Slackware
Posts: 39

Rep: Reputation: Disabled
" ... I'm still trying to forget "C:'Backslash'" ... "

Funny as h*ll!
 
1 members found this post helpful.
Old 05-16-2021, 06:34 PM   #110
Bonzoo
Member
 
Registered: Sep 2018
Location: Costa Rica
Distribution: Antix21a2,Parrot rolling,MXfce19.4,Sparky Openbox
Posts: 233

Rep: Reputation: 48
Um. sudo apt purge firefox
 
Old 08-03-2021, 05:50 PM   #111
Chris Rogiers
LQ Newbie
 
Registered: Dec 2015
Posts: 9

Rep: Reputation: Disabled
Favourite Linux prompt

A white blank rectangle preceded by the username@hostname:~$.

On computers I share with my wife it tells me who is logged in and what computer I am on.

I mostly run a KDE Plasma desktop, but not necessarily always from the same computer, the same hard disk nor do they all have the same distro.

So I choose one of my own pictures as background and with GIMP I superimpose the name and version of the distro and the drive it is running from.

Chris
 
Old 08-03-2021, 06:21 PM   #112
desertcat
Member
 
Registered: Apr 2014
Location: Tucson, AZ
Distribution: UNK: (NEW Workstation) AMD 5900X w/64GB; CentOS 7 (Workstation) AMD FX 6300 w/32GB;
Posts: 74

Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by rogerxx View Post
" ... I'm still trying to forget "C:'Backslash'" ... "

Funny as h*ll!
HUMMMMMMMI remember those days back during both IBM and MS-DOS 3.x, 4.x, 5.x, 6.x => 6.22. Sadly I never could forget the > symbol.

How's your ASCII? Now here's a nifty bash prompt:

[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="\[\033[1;32m\][\[\033[1;33m\]\u\[\033[1;36m\]@\h:\[\033[1;31m\]\w\[\033[1;32m\]]\[\033[1;35m\]/>\[\033[1;37m\]"

Have FUN!!

D'Cat
 
Old 08-03-2021, 07:16 PM   #113
Elvis1357
LQ Newbie
 
Registered: Mar 2021
Posts: 27

Rep: Reputation: Disabled
So far so good....

Well, almost 3 months now. Got Audacity installed but NO playback sound at all....still trying to find out.
Libre Office is good too.
 
Old 08-03-2021, 11:47 PM   #114
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Code:
\u@\h:\W $       (Or '#' for root)
Including, of course, the necessary ANSI control sequences to set the prompt color (Red for root and Cyan for regular folk.)

Last edited by rnturn; 08-03-2021 at 11:48 PM.
 
Old 08-04-2021, 12:06 AM   #115
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by GazL View Post
Some folks will certainly find that useful. I really dislike it when you're getting deep in the filesystem hierarchy and your prompt is taking up over half the screen width.
Yeah. I used to have a nifty prompt that I set up for my accounts back in my VMS days that would limit the directory portion of the prompt to no more than than the last 10-12 characters or so or the default directory (the pwd in the Unixverse). I've never quite been able to duplicate it on UNIX/Linux. I use "\W" in my PS1 and it keeps things short by stripping off all but the last bit of the pwd which I don't care for. Does "bin" mean I'm in "$HOME/bin" or "/usr/local/bin"? (Now, having mentioned that, I'll probably wind up spending an hour working on that tomorrow. :^D )
 
Old 08-04-2021, 03:13 AM   #116
desertcat
Member
 
Registered: Apr 2014
Location: Tucson, AZ
Distribution: UNK: (NEW Workstation) AMD 5900X w/64GB; CentOS 7 (Workstation) AMD FX 6300 w/32GB;
Posts: 74

Rep: Reputation: Disabled
Quote:
Originally Posted by PaulvSchaik View Post
Using a fancy zsh theme with this script:

Using a fancy zsh theme with this script:

Quote:
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"

if [[ $UID -eq 0 ]]; then
local user_host='%{$terminfo[bold]$fg[red]%}%n@%m %{$reset_color%}'
local user_symbol='#'
else
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m %{$reset_color%}'
local user_symbol='$'
fi

local current_dir='%{$terminfo[bold]$fg[blue]%}%~ %{$reset_color%}'
local git_branch='$(git_prompt_info)'
local rvm_ruby='$(ruby_prompt_info)'
local venv_prompt='$(virtualenv_prompt_info)'

ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"

PROMPT="╭─${user_host}${current_dir}${rvm_ruby}${git_branch}${venv_prompt}
╰─%B${user_symbol}%b "
RPROMPT="%B${return_code}%b"

ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"

ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg[red]%}‹"
ZSH_THEME_RUBY_PROMPT_SUFFIX="› %{$reset_color%}"

ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="%{$fg[green]%}‹"
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="› %{$reset_color%}"
ZSH_THEME_VIRTUALENV_PREFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX
ZSH_THEME_VIRTUALENV_SUFFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX

It result is a 2 line colorful prompt with user, location and GIT info.
Ah!!! ZSH!! I switched from BASH to ZSH. I never knew there could be so many prompt themes. My current ZSH prompt is:

# Theme with full path names and hostname
# Handy if you work on different servers all the time;
PROMPT="[%B%F{cyan}%n%f@%F{red}%m%F{white}:%F{green}%~%F{white}%}]%F{magenta}%}/%F{yellow}%}>%F{white}"

D'Cat
 
Old 08-16-2021, 12:38 PM   #117
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,813

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Way back in DOS days I was so enthused at PC as approaching a magic lamp Genii, and probably way over-estimating my own skills , I made my prompt say "Yes Master?" LOL

These days, in Linux, I'm happy with almost anything but substantially prefer it display username or root. I never use sudo so with "su" I like to see "root" in my prompt. Similarly I like running File Managers as root often so I setup very different color schemes for User and root so the difference becomes instinctive. It is a bonus if directory is listed but really not a requirement for me. If a prompt does, that's fine. If it doesn't, that's OK too.
 
Old 12-19-2023, 09:00 AM   #118
felipeabrao
Member
 
Registered: May 2017
Posts: 46

Rep: Reputation: Disabled
No preference.
 
Old 12-19-2023, 02:07 PM   #119
SteveG_0001
LQ Newbie
 
Registered: Mar 2015
Posts: 17

Rep: Reputation: Disabled
>

Simple.
 
Old 12-19-2023, 02:12 PM   #120
SteveG_0001
LQ Newbie
 
Registered: Mar 2015
Posts: 17

Rep: Reputation: Disabled
Reading the question a different way, my favorite. Prompt is...

No keyboard found press Y to continue.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Poll: (Without the poll) - How is Linux used in your workplace? SlowCoder General 13 09-11-2007 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration