work-bashrc-20210708 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. cat /home/watonsi/.cache/wal/sequences
  38. . "$HOME/.cargo/env"
  39. alias tmux="systemd-run --scope --user tmux"
  40. alias tmuxn="tmux new -s $1"
  41. alias tmuxa="/bin/tmux attach -t $1"
  42. alias tmuxl="/bin/tmux ls"
  43. alias tmuxq="echo $TMUX"
  44. # function to set terminal title
  45. function set-title() {
  46. if [[ -z "$ORIG" ]]; then
  47. ORIG=$PS1
  48. fi
  49. TITLE="\[\e]2;$*\a\]"
  50. PS1=${ORIG}${TITLE}
  51. }