A collection of scripts and configurations for Bash (and others)
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

.bashrc 1.0KB

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