A collection of scripts and configurations for Bash (and others)
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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