PS1 modified lags
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
- /usr/bin/mandb: fopen /var/cache/man/7935: Permission denied
- Category
- C
- Title
- ‘uint64_t’ was not declared in this scope
- Category
- C
- Title
- last element from list javascript
- Category
- C
- Title
- c bit access struct
- Category
- C
- Title
- atoi c
- Category
- C
- Title
- turn a char array into double C
- Category
- C
- Title
- get a remote branch git
- Category
- C
- Title
- docker logs follow
- Category
- C
- Title
- How to make a printf in c
- Category
- C
- Title
- hopw to check how many duplicates in an array c
- Category
- C
- Title
- pointer parameter where to put the asterix in C?
- Category
- C
- Title
- how to create an array of char in c++
- Category
- C
- Title
- scanf read line
- Category
- C
- Title
- arduino knn
- Category
- C
- Title
- mostrar lista recursiva
- Category
- C
- Title
- ordenar un vector
- Category
- C
- Title
- matrix c declaration
- Category
- C
- Title
- docker run port mapping
- Category
- C
- Title
- change a attribute in dataframe
- Category
- C
- Title
- c float to int
- Category
- C
- Title
- how to use a pointer as a parameter in c
- Category
- C
- Title
- jock cranley
- Category
- C
- Title
- get current used proxy windows 7
- Category
- C
- Title
- find gcd iteratively
- Category
- C
- Title
- c
- Category
- C
- Title
- fgets c
- Category
- C
- Title
- pop and push shows black screen which needs to be pressed back flutter
- Category
- C
- Title
- docker pull command
- Category
- C
- Title
- azure storage emulator config
- Category
- C
- Title
- how can i remove a specific item from an array
- Category
- C
- Title
- error: ‘cout’ was not declared in this scope
- Category
- C
- Title
- C why is is & nit used in scan f fr string
- Category
- C
- Title
- c check if array is empty
- Category
- C
- Title
- unordered_map
- Category
- C
- Title
- potencia recursiva
- Category
- C
- Title
- vbl share price
- Category
- C
- Title
- functions in c
- Category
- C
- Title
- a enum data type in c with loop
- Category
- C
- Title
- how to login to another user in powershell
- Category
- C
- Title
- latex font sizes
- Category
- C
- Title
- hello world
- Category
- C
- Title
- 233 pounds to inr
- Category
- C
- Title
- CL/cl.h: No such file or directory
- Category
- C
- Title
- ImportError: No module named 'skimage'
- Category
- C
- Title
- lelcetric fied
- Category
- C
- Title
- Declare macro
- Category
- C
- Title
- d3 box shadow
- Category
- C
- Title
- tar cmd
- Category
- C
- Title
- write array of char to file in c
- Category
- C
- Title
- append to list in c
- Category
- C
- Title
- calculate max of three numbers using ternary operator in c
- Category
- C
- Title
- reverse function in c
- Category
- C
- Title
- how to change the mapping from jkil to wasd in vim
- Category
- C
- Title
- kadane's algorithm
- Category
- C
- Title
- pasar a binario recursivo
- Category
- C
- Title
- piramide
- Category
- C
- Title
- what is restrict keyword in c
- Category
- C
- Title
- Gemfile.lock`. It is likely that you need to grant write permissions for that path.
- Category
- C
- Title
- version of libgcc
- Category
- C
- Title
- How to setup a line length marker in vim
- Category
- C
- Title
- function in c
- Category
- C
- Title
- c program to find the sum of given number
- Category
- C
- Title
- how to mutex lock in c
- Category
- C
- Title
- How to pull images from Docker Registry
- Category
- C
- Title
- how to write function in c
- Category
- C
- Title
- assert() in c
- Category
- C
- Title
- es palindromo
- Category
- C
- Title
- stack
- Category
- C
- Title
- conda windows 10 from pip._internal.cli.main import main ModuleNotFoundError
- Category
- C
- Title
- get regedit value cmd
- Category
- C
- Title
- docker images command
- Category
- C
- Title
- Print the number 0 using write()
- Category
- C
- Title
- strtoul C
- Category
- C
- Title
- accessing elements of 1d array using pointers
- Category
- C
- Title
- c program to count duplicates in an array
- Category
- C
- Title
- primo
- Category
- C
- Title
- bubble sort time complexity
- Category
- C
- Title
- changing tuple values
- Category
- C
- Title
- left me on read
- Category
- C
- Title
- array length c
- Category
- C
- Title
- oop244
- Category
- C
- Title
- how to open a website in c
- Category
- C
- Title
- get configuration script window 7
- Category
- C
- Title
- v
- Category
- C
- Title
- command line arguments c
- Category
- C
- Title
- factorial of a given number in c
- Category
- C
- Title
- xamarin command listview button
- Category
- C
- Title
- how to print in c
- Category
- C
- Title
- excel cell blank or zero
- Category
- C
- Title
- powershell search big files
- Category
- C
- Title
- error: dereferencing pointer to incomplete type
- Category
- C
- Title
- what are the causes of memory leaks in c
- Category
- C
- Title
- first person view unity
- Category
- C
- Title
- how to store a user input with spaces in c
- Category
- C
- Title
- qtableview get selected row
- Category
- C
- Title
- reset c array to zero
- Category
- C
- Title
- chat
- Category
- C
- Title
- div
- Category
- C
- Title
- Assign integer value to pointer?
- Category
- C
- Title
- for loop c
- Category
- C