ORIG=$PS1
TITLE="\e]2;\"This is just crazy enough to work\"\a"
PS1=${ORIG}${TITLE}
Resets title to
“This is just crazy enough to work”
This should apply to all xterm-style terminal emulators.
Related Contents:
- Echo tab characters in bash script
- Open files in existing Gvim in multiple (new) tabs
- How can I get 2nd and third column in tab delim file in bash?
- How can I write a heredoc to a file in Bash script?
- Set environment variables from file of key/value pairs
- Disable beep in WSL terminal on Windows 10 [closed]
- How to urlencode data for curl command?
- Bash command to sum a column of numbers [duplicate]
- How to represent multiple conditions in a shell if statement?
- Clone private git repo with dockerfile
- Running script upon login in mac OS X [closed]
- Can I change the name of `nohup.out`?
- How to apply shell command to each line of a command output?
- Only get hash value using md5sum (without filename)
- Piping both stdout and stderr in bash?
- bash: shortest way to get n-th column of output
- Bash if statement with multiple conditions throws an error
- Bash: Syntax error: redirection unexpected
- Is there anything in Zsh like .bash_profile?
- Variable interpolation in the shell
- How to specify a multi-line shell variable?
- Relative paths based on file location instead of current working directory [duplicate]
- Simulating ENTER keypress in bash script
- Browsing Folders in MSYS
- Running programs in parallel using xargs
- here-document gives ‘unexpected end of file’ error
- Loop background job
- Groups of compound conditions in Bash test [duplicate]
- Execute a shell function with timeout
- counting duplicates in a sorted sequence using command line tools
- Checking host availability by using ping in bash scripts
- Possible to disable “You have new mail in /var/mail/root”?
- Automated graceful reload of gunicorn in production
- How to cd into a directory with space in the name?
- Insert newline (\n) using sed
- How can I redirect all output to /dev/null?
- How to remove files starting with double hyphen?
- How to install Certbot (Let’s Encrypt) without interaction?
- How to use multiline command in ‘script:’ with YAML?
- Bash how do you capture stderr to a variable? [duplicate]
- Remove Unicode characters from textfiles – sed , other Bash/shell methods
- Display only the n’th match of grep
- store postgresql result in bash variable
- Bash: limit the number of concurrent jobs? [duplicate]
- How do I echo stars (*) when reading password with `read`?
- what is difference in `declare -r` and `readonly` in bash?
- What does [[ $- = *i* ]] mean in bash?
- Use Awk to extract substring
- How to scroll back the terminal to where the last command was given?
- Azure CLI in Git Bash