A collection of scripts and configurations for Bash (and others)
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

47 lines
1.0KB

  1. # If not running interactively, don't do anything
  2. [[ $- != *i* ]] && return
  3. source .bash_inc
  4. # For SSH Agent user service
  5. #export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
  6. SSH_ENV="$HOME/.ssh/environment"
  7. function start_agent {
  8. echo "Initialising new SSH agent..."
  9. /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
  10. echo succeeded
  11. chmod 600 "${SSH_ENV}"
  12. . "${SSH_ENV}" > /dev/null
  13. /usr/bin/ssh-add;
  14. }
  15. # Source SSH settings, if applicable
  16. if [ -f "${SSH_ENV}" ]; then
  17. . "${SSH_ENV}" > /dev/null
  18. #ps ${SSH_AGENT_PID} doesn't work under cywgin
  19. ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
  20. start_agent;
  21. }
  22. else
  23. start_agent;
  24. fi
  25. # Add personal path to the path string
  26. add_to_envpath /home/obsidianblk/.local/bin
  27. add_to_envpath /home/obsidianblk/.local/sbin
  28. alias ls='ls --color=auto'
  29. COLOR_PROMPT=yes
  30. source ~/Development/MyBash/colors.rc.sh
  31. source ~/Development/MyBash/ps1.rc.sh
  32. cat ~/.cache/wal/sequences
  33. # Now display neofetch information.
  34. neofetch