I know that there is lots of info for colouring the output of certain commands, but I want to have a specific colour for everything I write into the Mac terminal.
It would allow me to have a special colour for everything I input - not the output, just the code I personally input - making it easy to scan the code to where the last command was. I want to find a way to do it without having to write a colour alias for every single command - A way that by default will implement a unique colour for everything I write in the terminal.
Thanks for your help.
I have now sorted this...
Open your ~/.bash_profile in whatever editor you prefer.
Add the following code:
export PS1="\e[0;32m[\u#\h \W]\$ \e[m"
and save.
You will now see that your command prompt is coloured green, and it's super easy to find yourself in the terminal :)
Hope that's helpful for anyone trying to fix the same problem!
P.S> These instructions cover more than just the colour in the terminal... They also control what it shown in your command prompt. I'm afraid that it will need someone way more advanced at coding than me to decipher which bit refers to what... Sorry!
Related
I have big troubles when manual inputing data acc. to: https://stackoverflow.com/questions/69532716/simple-line-from-two-points-continuing-through-points
When i start to typing data, I mean when i define points and want to correct sth - I cannot do that.
GNU plot starts to using very strange chars. And i cannot clear any data I already defined.
I dont even know how to stop gnuplot and continue my job.
Can anyone help me how to correct my data or maybe how to re-run gnuplot with simple command?
Is it also possible to clear command window in GNUPLOT 5.4.5 (windows)?
I tried to use CTRL - C, CTRL - D commands to return to default typing and it does not work. For clearing command window i tried to use clear or CLC or system 'cls' command and cannot achieve required effect :/
What I want to do is to set the default color (like if output \e[0m) for EVERY output. For some reasons I can’t change it in terminal settings and only hope that Bash can
One way I think it might be possible is to redirect output to temporary file (or file descriptor, or function if possible) and print everything char-by-char or something and removing the reset sequence, but I’m not sure it’s the best way
So can Bash or Zsh do it quickly?
i am using the Linux terminal to formulate an AWS command. After the command i have to specify the config via JSON.
So i am writing the JSON and want to trigger the command but whenever i press enter it only gives me a new line.
I am not using a specific text editor in the terminal.
I know this is a stupid question but i am searching now for an hour but i cant find the correct shortcut. I would really appreciate if somebody could give me a hint.
Thank you very much.
Have a look at you quotation marks If they are closed properly, it wont give you a new line.
I'm a newbie to Linux. I want to create my own ASCII character logo to be displayed on the Linux terminal(it is for pleasure and also to learn). I searched through the internet and found there are tools available for that work. For example,Figlet,Neofetch,Screenfetch etc. But I want to know if there is any method to create a such a logo except hard-coding the logo. If anyone know please help.
You're much more likely to get an answer if you explain clearly.
By 'ASCII character logo' you could mean that you want to create your own character (as in letter/number/symbol) and use it in the terminal just like you'd be able to display the 'L' letter. For that you'd need to create your own font, add your character in and set the terminal to use that font. There are plenty of tools online that can help you create a font.
If you mean you simply want to display some ascii art on the terminal, you can use something like this: http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20. You can save the text to a file on your linux computer, and print it back out again using the cat command.
An example is below:
cat ascii_logo.txt
You do also list things like figet, which will automatically generate the ASCII art for you from some text - I'm not sure why these don't fulfill your needs?
I'm making a command interface for a node server, but I have reached a point that I want it to look better.
I want to have the console so you enter a command at the bottom of the terminal screen, you hit enter, and it adds the reply to the actual command line.
If you have ever run a minecraft bukkit server from the command line, you should know what I'm talking about.
Here's a picture of what I'm talking about if you still don't understand. Imagine this was in terminal, and ignore the scroll bars: http://cl.ly/1K0h1V0r0H3f3U3t3L22
Is there anyway to set the console to look like this without having to make your own program for it or having the screen reprint all the other info to fake that look?
I have not done this, but I believe something similar is possible with very little effort by using Node.js REPL. You can override the eval parameter to provide your own command processing.
It would not have the exact look you are wanting, but it will be an interactive prompt that you can utilize (more similar to a Windows command shell or a Linux shell).
If you want the exact look from your screenshot, I don't believe that there is any Node.js module that will help you. There are some that allow you to use colors in the console, and some basic highlighting (e.g. bold), but nothing that gives you complete control over the console screen.