.bashrc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # ~/.bashrc: executed by bash(1) for non-login shells.
  2. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  3. # for examples
  4. # If not running interactively, don't do anything
  5. case $- in
  6. *i*) ;;
  7. *) return;;
  8. esac
  9. HISTCONTROL=ignoreboth
  10. shopt -s histappend
  11. # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  12. HISTSIZE=10000
  13. HISTFILESIZE=20000
  14. # check the window size after each command and, if necessary,
  15. # update the values of LINES and COLUMNS.
  16. shopt -s checkwinsize
  17. # enable color support of ls and also add handy aliases
  18. if [ -x /usr/bin/dircolors ]; then
  19. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  20. alias ls='ls --color=auto'
  21. #alias dir='dir --color=auto'
  22. #alias vdir='vdir --color=auto'
  23. #alias grep='grep --color=auto'
  24. #alias fgrep='fgrep --color=auto'
  25. #alias egrep='egrep --color=auto'
  26. fi
  27. # enable programmable completion features (you don't need to enable
  28. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  29. # sources /etc/bash.bashrc).
  30. if ! shopt -oq posix; then
  31. if [ -f /usr/share/bash-completion/bash_completion ]; then
  32. . /usr/share/bash-completion/bash_completion
  33. elif [ -f /etc/bash_completion ]; then
  34. . /etc/bash_completion
  35. fi
  36. fi
  37. #export XKB_DEFAULT_OPTIONS=compose:ralt,ctrl:nocaps
  38. export ANDROID_SDK_ROOT=/Users/bc/Library/Android/sdk
  39. export NVM_DIR="$HOME/.nvm"
  40. [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
  41. [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
  42. alias c=clear
  43. alias q=exit
  44. alias :q=exit
  45. alias d="dirs -v" # print recently visited directories
  46. alias dup="foot & disown"
  47. bind '"\e[A": history-search-backward'
  48. bind '"\e[B": history-search-forward'
  49. set -o vi
  50. export PICO_SDK_PATH=~/picosystem/pico/pico-sdk
  51. export PICO_EXAMPLES_PATH=~/picosystem/pico/pico-examples
  52. export PICO_EXTRAS_PATH=~/picosystem/pico/pico-extras
  53. export PICO_PLAYGROUND_PATH=~/picosystem/pico/pico-playground
  54. ulimit -c unlimited