Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

shorten terminal prompt linux

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '
else
    PS1='${debian_chroot:+($debian_chroot)}u@h:w$ '
fi

// Replace Above code with Following Code in ~/.bashrc

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u[33[00m]:[33[01;34m]W[33[00m]$ '
else
    PS1='${debian_chroot:+($debian_chroot)}u:W$ '
fi
Comment

linux short prompt

$ PROMPT_DIRTRIM=3 //number of folders shown.
Comment

PREVIOUS NEXT
Code Example
Shell :: install xinput 
Shell :: rm a var of $PATH ubuntu 
Shell :: Autobackup if directory size is more than 25 MB bash 
Shell :: psycopg2 not installing on python-alpine 
Shell :: powershell message all users on remote machine(s) 
Shell :: ubuntu install curse of war 
Shell :: linux enable numlock on boot up 
Shell :: terminal snap changes check percentage 
Shell :: disable logging in linux 
Shell :: how to search for a package on arch repositories 
Shell :: force remove any folder windwos 10 command 
Shell :: how to run gnome calculater master code 
Shell :: c program to add 1 to each digit of a number 
Shell :: windows batch ping a range of addresses 
Shell :: npm ldapjs 
Shell :: CMake 3.16.0 or higher is required. You are running version 3.10.2 
Shell :: wls update ubuntu distribution 
Shell :: dpkg --configure -a » pour corriger le problème. 
Shell :: scanning with dirb 
Shell :: ctrl+z equivalent in vim 
Shell :: Authentication required. System policy prevents WiFi scans 
Shell :: Add a file or folder to a tar 
Shell :: wsl networking 
Shell :: Cloud watch agent for logs and use of PStore 
Shell :: installing through requiirements file 
Shell :: how to map my ctrl key to CAPS key in vim linux 
Shell :: WSL distro startup fail 
Shell :: Failed to initialize graphics environment linux 
Shell :: how to pass a variable to remote ssh command 
Shell :: command to set ns in kubectl 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =