Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

zsh prompt losing customization when using `sudo su`

sudo su is deprecated and will indeed mess up your environment.
Use sudo -i instead.

(This also has the advantage that it works on systems without su)

Edit: I forgot something:
Add export PS1="%F{013}%2~%f$(git_super_status)%(?.%F{004}.%F{001}✕%?)$ %f"
at the end of /root/.zshrc
Comment

PREVIOUS NEXT
Code Example
Shell :: file transfer disabled by policy 
Shell :: bash script bell ping 
Shell :: ssh configuration packet tracer 
Shell :: linux how to cd into directory and run command without changing working directory 
Shell :: ring check if the operating system is Linux or not 
Shell :: pull docker images for Mac M1 arm64 
Shell :: linux pki wildcard 
Shell :: block bench download linux command 
Shell :: kill user tty sessions terminal 
Shell :: Wallpaper kali 
Shell :: mongo-sanitize github 
Shell :: patch command 
Shell :: change gmt linux 
Shell :: boot.img unpack linux 
Shell :: fix unable to output headphone audio on linux mint 
Shell :: . ~/ms_env.sh 
Shell :: Transfer all the changes made to a single file between git branches 
Shell :: adding file system to a volume 
Shell :: is outside repository at 
Shell :: pip install SSLComerz 
Shell :: nginx ssl configuration ubuntu with pfx file 
Shell :: Ubuntu adhan program 
Shell :: bash read length of fasta file seqeunces 
Shell :: windows auto ip address change script 
Shell :: split disk image dmg 
Shell :: execute command on every recursive directory 
Shell :: Fastp github 
Shell :: <bits/types/__fpos_t.h no such file or directory 
Shell :: find jpg or png 
Shell :: installing custom indicators mt4 mac 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =