text wrap terminal colour
C
The string property is not properly closed by default
You have to add a layer of closure by adding unprintable brackeys
Example 1 : We want Hello World in green as our prompt
Without brackeys:
PS1="\033[1;32m Hello World \033[00m"
With brackeys (no text-wrapping):
PS1="\[ \033[1;32m \] Hello World \[ \033[00m \]"
//note : I added spaces for more clarity but they are printed if you add them
Example 2 : My prompt
PS1="\[\033[1;32m\]\u@\h\[\033[00m\] [ \[\033[38;5;215m\]\[\e[5m\]\w\[\e[25m\]\[\033[00m\] ] "
//note : I have my username and machine in green and the folder i'm in coloured in blinking orange
Ressource for colours and effects :
"https://misc.flogisoft.com/bash/tip_colors_and_formatting"
Also in C:
- Title
- lazer codechef
- Category
- C
- Title
- functions in c
- Category
- C
- Title
- How to pull images from Docker Registry
- Category
- C
- Title
- how to get user input in c
- Category
- C
- Title
- c program to find the sum of given number
- Category
- C
- Title
- div
- Category
- C
- Title
- double return type in c
- Category
- C
- Title
- can we write a program without main in c
- Category
- C
- Title
- arduino digital input pins
- Category
- C
- Title
- Fibonacci program c pthread
- Category
- C
- Title
- es palindromo
- Category
- C
- Title
- write array of char to file in c
- Category
- C
- Title
- reverse function in c
- Category
- C
- Title
- CL/cl.h: No such file or directory
- Category
- C
- Title
- wait function in c
- Category
- C
- Title
- tkinter create_line
- Category
- C
- Title
- changing tuple values
- Category
- C
- Title
- link whatsapp to website
- Category
- C
- Title
- arduino digital read
- Category
- C
- Title
- version of libgcc
- Category
- C
- Title
- how to only show tenths place in c
- Category
- C
- Title
- vbnet create and write on file
- Category
- C
- Title
- is c and c++ platform independent
- Category
- C
- Title
- azure storage emulator config
- Category
- C
- Title
- c check if char is an operator
- Category
- C
- Title
- how to convert int in to const char in c
- Category
- C
- Title
- multiplication in c
- Category
- C
- Title
- append to list in c
- Category
- C
- Title
- error: ‘istringstream’ is not a member of ‘std’
- Category
- C
- Title
- pop and push shows black screen which needs to be pressed back flutter
- Category
- C
- Title
- buscar caracter
- Category
- C
- Title
- too few arguments to function in c
- Category
- C
- Title
- long commands makes terminal lag after modifying PS1
- Category
- C
- Title
- sum of arrays
- Category
- C
- Title
- Declaring Variables in C
- Category
- C
- Title
- stack implementation
- Category
- C
- Title
- what is strikethrough in markdown
- Category
- C
- Title
- error 403
- Category
- C
- Title
- last element from list javascript
- Category
- C
- Title
- matrix c declaration
- Category
- C
- Title
- java.lang.SecurityException: Permission denied (missing INTERNET permission?)
- Category
- C
- Title
- how to open a website in c
- Category
- C
- Title
- multiplication operator in c
- Category
- C
- Title
- c print hello world
- Category
- C
- Title
- sbatch array set max jobs at once
- Category
- C
- Title
- full screen on c
- Category
- C
- Title
- vue cdn
- Category
- C
- Title
- fa fa-facebook
- Category
- C
- Title
- linux directory commands
- Category
- C
- Title
- read a document in c getting name from console
- Category
- C
- Title
- where is my vimrc
- Category
- C
- Title
- 'int' is not a subtype of type 'double' dart
- Category
- C
- Title
- csrf_exempt
- Category
- C
- Title
- es vocal
- Category
- C
- Title
- 233 pounds to inr
- Category
- C
- Title
- -> operator
- Category
- C
- Title
- mongodb delete all documents
- Category
- C
- Title
- read a binary file c
- Category
- C
- Title
- get current used proxy windows 7
- Category
- C
- Title
- xmlns='' was not expected
- Category
- C
- Title
- how to change the mapping from jkil to wasd in vim
- Category
- C
- Title
- write in a file using c
- Category
- C
- Title
- c printf uint32_t
- Category
- C
- Title
- Declare macro
- Category
- C
- Title
- arduino knn
- Category
- C
- Title
- xamarin command listview button
- Category
- C
- Title
- does strcat null terminate
- Category
- C
- Title
- ModuleNotFoundError: No module named 'cv2'
- Category
- C
- Title
- c check if char is number
- Category
- C
- Title
- get configuration script window 7
- Category
- C
- Title
- Difference between ** and *
- Category
- C
- Title
- c get first n characters of string
- Category
- C
- Title
- strtok
- Category
- C
- Title
- c value set to zero __memmove_avx_unaligned_erms
- Category
- C
- Title
- restapi
- Category
- C
- Title
- pointer parameter where to put the asterix in C?
- Category
- C
- Title
- c check if file was created
- Category
- C
- Title
- piramide
- Category
- C
- Title
- how to do matrix multiplication in c
- Category
- C
- Title
- How to setup a line length marker in vim
- Category
- C
- Title
- write in file in c
- Category
- C
- Title
- calculate max of three numbers using ternary operator in c
- Category
- C
- Title
- how to put a struct in another struct C
- Category
- C
- Title
- how to sleep in c
- Category
- C
- Title
- simpy process return value
- Category
- C
- Title
- functions return type in c
- Category
- C
- Title
- duplicar cadena
- Category
- C
- Title
- get a remote branch git
- Category
- C
- Title
- windowns 10 allow ping
- Category
- C
- Title
- remove element queue
- Category
- C
- Title
- print variable c
- Category
- C
- Title
- function pointer c
- Category
- C
- Title
- printf("%3d ",XX);
- Category
- C
- Title
- iterate through map
- Category
- C
- Title
- insertion sort
- Category
- C
- Title
- docker pull command
- Category
- C
- Title
- C/c drop mime
- Category
- C
- Title
- es par
- Category
- C
- Title
- '&&' within '||'
- Category
- C
- Title
- .\main.c:4:8: error: expected declaration specifiers or '...' before '\x6f726c64'
- Category
- C