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 :: rename a file in terminal linux 
Shell :: cp directory with exclusion 
Shell :: sshkeygen validate keys 
Shell :: Show 10 Largest Open Files 
Shell :: inpm install 
Shell :: how to kali pentest guide line command how to hack with kali humm my friendsss is all back in google make a signe 
Shell :: Edit remote files within Vim session 
Shell :: find files changed in github actions 
Shell :: Fix Network Error Docker and Windows Containers 
Shell :: push local file to remote forcefully 
Shell :: ubuntu cmd file last modified time 
Shell :: set gcc path to vscode in ubuntu 
Shell :: how to setup raspi-config on ubuntu server running on raspberry pi 
Shell :: elementary os install window cut off 
Shell :: make folder public digital ocean bucket 
Shell :: delete cache gi 
Shell :: how to select an object based a field which is like a string jq 
Shell :: alternative echo linux 
Shell :: https://cloud.google.com/python/docs/reference/cloudscheduler/latest/google.cloud.scheduler_v1.services.cloud_scheduler.CloudSchedulerClient#google_cloud_scheduler_v1_services_cloud_scheduler_CloudSchedulerClient_delete_job 
Shell :: linux function return 
Shell :: linux monitor ttyusb0 
Shell :: kubuntu snap app not showing 
Shell :: hora terminal 
Shell :: screenshot avec annotation linux 
Shell :: rar command line split size 
Shell :: how to extract sequential files multiple zip files at once 
Shell :: Command to get list of shell variables in bash 
Shell :: Navigate to previous directory in windows command prompt 
Shell :: shell scripting 
Shell :: ubuntu kill running port 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =