Advertisement
anify

My latest ~/.bashrc

May 1st, 2024
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. ## ~/.bashrc
  2. ## Some customization came from https://bluz71.github.io/2023/06/02/maximize-productivity-of-the-bash-shell.html
  3.  
  4. # fzf
  5. if command -v fzf-share >/dev/null; then
  6. source "$(fzf-share)/key-bindings.bash"
  7. fi
  8.  
  9. # - autocd - change directory without entering the 'cd' command
  10. # - cdspell - automatically fix directory typos when changing directory
  11. # - direxpand - automatically expand directory globs when completing
  12. # - dirspell - automatically fix directory typos when completing
  13. # - globstar - ** recursive glob
  14. # - histappend - append to history, don't overwrite
  15. # - histverify - expand, but don't automatically execute, history expansions
  16. # - nocaseglob - case-insensitive globbing
  17. # - no_empty_cmd_completion - do not TAB expand empty lines
  18. shopt -s autocd cdspell direxpand dirspell globstar histappend histverify \
  19. nocaseglob no_empty_cmd_completion
  20.  
  21. HISTCONTROL=ignoreboth:erasedups # Ignore and erase duplicates
  22. HISTIGNORE=?:?? # Ignore one and two letter commands
  23.  
  24. PROMPT_COMMAND="history -a; history -n" # Share history between concurrent Bash sessions
  25.  
  26. # fzf-obc
  27. source /etc/profiles/per-user/anifyuli/share/fzf-obc/bin/fzf-obc.bash
  28.  
  29. # fzf coloring
  30. export FZF_DEFAULT_OPTS='--color=bw'
  31.  
  32. source ~/.bash/themes/aphrodite/aphrodite.theme.sh # Use Aphrodite prompt theme
  33.  
  34. # Android SDK path
  35. export ANDROID_HOME=$HOME/.android/sdk
  36. export PATH=$ANDROID_HOME/cmdline-tools/tools/bin/:$PATH
  37. export PATH=$ANDROID_HOME/emulator/:$PATH
  38. export PATH=$ANDROID_HOME/platform-tools/:$PATH
  39.  
  40. # pnpm
  41. export PNPM_HOME="/home/anifyuli/.local/share/pnpm"
  42. case ":$PATH:" in
  43. *":$PNPM_HOME:"*) ;;
  44. *) export PATH="$PNPM_HOME:$PATH" ;;
  45. esac
  46. # pnpm end
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement