disu1950

termux-default-bashrc

Jul 3rd, 2024
93
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.81 KB | Software | 0 0
  1. # Command history tweaks:
  2. # - Append history instead of overwriting
  3. #   when shell exits.
  4. # - When using history substitution, do not
  5. #   exec command immediately.
  6. # - Do not save to history commands starting
  7. #   with space.
  8. # - Do not save duplicated commands.
  9. shopt -s histappend
  10. shopt -s histverify
  11. export HISTCONTROL=ignoreboth
  12.  
  13. # Default command line prompt.
  14. PROMPT_DIRTRIM=2
  15. PS1='\[\e[0;32m\]\w\[\e[0m\] \[\e[0;97m\]\$\[\e[0m\] '
  16.  
  17. # Handles nonexistent commands.
  18. # If user has entered command which invokes non-available
  19. # utility, command-not-found will give a package suggestions.
  20. if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then
  21.         command_not_found_handle() {
  22.                 /data/data/com.termux/files/usr/libexec/termux/command-not-found "$1"
  23.         }
  24. fi
Tags: bashrc ttermux
Comments
Add Comment
Please, Sign In to add comment