current-bashrc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # .bashrc
  2. # Source global definitions
  3. if [ -f /etc/bashrc ]; then
  4. . /etc/bashrc
  5. fi
  6. if [ -f ~/.wal_alias ]; then
  7. . ~/.wal_alias
  8. fi
  9. # User specific environment
  10. if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
  11. then
  12. PATH="$HOME/.local/bin:$HOME/bin:$PATH"
  13. fi
  14. export PATH
  15. export EDITOR=/usr/bin/vim
  16. # Uncomment the following line if you don't like systemctl's auto-paging feature:
  17. # export SYSTEMD_PAGER=
  18. # User specific aliases and functions
  19. if [ -d ~/.bashrc.d ]; then
  20. for rc in ~/.bashrc.d/*; do
  21. if [ -f "$rc" ]; then
  22. . "$rc"
  23. fi
  24. done
  25. fi
  26. unset rc
  27. [ -f ~/.fzf.bash ] && source ~/.fzf.bash
  28. #export PS1="\e[1;32m\u\e[0m@\h: \$PWD $ "
  29. PS1="[\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]]\$ "
  30. #PS1='\[\e]1;\s\$ \W\a\e]2;\u@\h\a\]'"$PS1"
  31. #export $PS1
  32. alias start_od="rclone --vfs-cache-mode writes mount ipconedrive: /home/watonsi/OneDrive/"
  33. alias pass_server="ssh watsonsi@ffdctpws1.ipc.com"
  34. alias shorten-ps1="PS1='\$ '"
  35. alias default-ps1="PS1='[\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]]\$ '"
  36. alias ls="/usr/bin/exa"
  37. alias ll="/usr/bin/exa -lah"
  38. cat /home/watonsi/.cache/wal/sequences
  39. . "$HOME/.cargo/env"
  40. alias tmux="systemd-run --scope --user tmux"
  41. alias tmuxn="tmux new -s $1"
  42. alias tmuxa="/bin/tmux attach -t $1"
  43. alias tmuxl="/bin/tmux ls"
  44. alias tmuxq="echo $TMUX"
  45. # function to set terminal title
  46. function set-title() {
  47. if [[ -z "$ORIG" ]]; then
  48. ORIG=$PS1
  49. fi
  50. TITLE="\[\e]2;$*\a\]"
  51. PS1=${ORIG}${TITLE}
  52. }