Python scripts I use to manage my ssh connections, drive mounts, and other bash related things.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
3.3 KiB

  1. #make sure that scripts don't use changes
  2. [[ $- != *i* ]] && return
  3. # If you come from bash you might have to change your $PATH.
  4. # export PATH=$HOME/bin:/usr/local/bin:$PATH
  5. # Path to your oh-my-zsh installation.
  6. export ZSH=/home/jeff/.oh-my-zsh
  7. # Set name of the theme to load. Optionally, if you set this to "random"
  8. # it'll load a random theme each time that oh-my-zsh is loaded.
  9. # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
  10. ZSH_THEME="bira"
  11. # Uncomment the following line to use case-sensitive completion.
  12. # CASE_SENSITIVE="true"
  13. # Uncomment the following line to use hyphen-insensitive completion. Case
  14. # sensitive completion must be off. _ and - will be interchangeable.
  15. # HYPHEN_INSENSITIVE="true"
  16. # Uncomment the following line to disable bi-weekly auto-update checks.
  17. DISABLE_AUTO_UPDATE="true"
  18. # Uncomment the following line to change how often to auto-update (in days).
  19. # export UPDATE_ZSH_DAYS=13
  20. # Uncomment the following line to disable colors in ls.
  21. # DISABLE_LS_COLORS="true"
  22. # Uncomment the following line to disable auto-setting terminal title.
  23. # DISABLE_AUTO_TITLE="true"
  24. # Uncomment the following line to enable command auto-correction.
  25. # ENABLE_CORRECTION="true"
  26. # Uncomment the following line to display red dots whilst waiting for completion.
  27. # COMPLETION_WAITING_DOTS="true"
  28. # Uncomment the following line if you want to disable marking untracked files
  29. # under VCS as dirty. This makes repository status check for large repositories
  30. # much, much faster.
  31. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  32. # Uncomment the following line if you want to change the command execution time
  33. # stamp shown in the history command output.
  34. # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  35. # HIST_STAMPS="mm/dd/yyyy"
  36. # Would you like to use another custom folder than $ZSH/custom?
  37. # ZSH_CUSTOM=/path/to/new-custom-folder
  38. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  39. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  40. # Example format: plugins=(rails git textmate ruby lighthouse)
  41. # Add wisely, as too many plugins slow down shell startup.
  42. plugins=(git)
  43. source $ZSH/oh-my-zsh.sh
  44. # User configuration
  45. # export MANPATH="/usr/local/man:$MANPATH"
  46. # You may need to manually set your language environment
  47. # export LANG=en_US.UTF-8
  48. # Preferred editor for local and remote sessions
  49. # if [[ -n $SSH_CONNECTION ]]; then
  50. # export EDITOR='vim'
  51. # else
  52. # export EDITOR='mvim'
  53. # fi
  54. # Compilation flags
  55. # export ARCHFLAGS="-arch x86_64"
  56. # ssh
  57. # export SSH_KEY_PATH="~/.ssh/rsa_id"
  58. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  59. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  60. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  61. # For a full list of active aliases, run `alias`.
  62. #
  63. # Example aliases
  64. # alias zshconfig="mate ~/.zshrc"
  65. # alias ohmyzsh="mate ~/.oh-my-zsh"
  66. alias roosay="python3 /home/jeff/scripts/bash_manager/src/roosay.py"
  67. alias ss="python3 /home/jeff/scripts/bash_manager/src/ssh_manager.py"
  68. alias ssh_manager="python3 /home/jeff/scripts/bash_manager/src/ssh_manager.py"
  69. alias quote="python3 /home/jeff/scripts/bash_manager/src/quote.py"
  70. alias ls="ls -abp --color=auto"
  71. alias imgo="sh /home/jeff/scripts/bash_manager/scripts/optimizeImages.sh"
  72. function cd {
  73. builtin cd "$@" && ls
  74. }
  75. function exit {
  76. builtin exit && exit
  77. }
  78. quote