not really known
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.

125 lines
3.4 KiB

  1. # Does not apply zsh settings this session is "interactive"
  2. # ie this is a script
  3. [[ $- != *i* ]] && return
  4. # Path to your oh-my-zsh installation.
  5. export ZSH="/home/jeff/.oh-my-zsh"
  6. export TERM="xterm-256color"
  7. export DOTNET_ROOT=$HOME/dotnet
  8. export PATH=$PATH:$HOME/dotnet
  9. # Set name of the theme to load --- if set to "random", it will
  10. # load a random theme each time oh-my-zsh is loaded, in which case,
  11. # to know which specific one was loaded, run: echo $RANDOM_THEME
  12. # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
  13. #ZSH_THEME="rkj-repos"
  14. #ZSH_THEME="bira"
  15. ZSH_THEME="agnosterzak"
  16. # Uncomment the following line to use hyphen-insensitive completion.
  17. # Case-sensitive completion must be off. _ and - will be interchangeable.
  18. # HYPHEN_INSENSITIVE="true"
  19. #Uncomment the following line to disable bi-weekly auto-update checks.
  20. DISABLE_AUTO_UPDATE="true"
  21. # Uncomment the following line to display red dots whilst waiting for completion.
  22. COMPLETION_WAITING_DOTS="true"
  23. # Uncomment the following line if you want to disable marking untracked files
  24. # under VCS as dirty. This makes repository status check for large repositories
  25. # much, much faster.
  26. DISABLE_UNTRACKED_FILES_DIRTY="true"
  27. # Which plugins would you like to load?
  28. # Standard plugins can be found in ~/.oh-my-zsh/plugins/*
  29. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  30. # Example format: plugins=(rails git textmate ruby lighthouse)
  31. # Add wisely, as too many plugins slow down shell startup.
  32. plugins=(
  33. git
  34. history-substring-search
  35. z
  36. extract
  37. )
  38. source $ZSH/oh-my-zsh.sh
  39. # Config to fix ZSH when running in windows sub system
  40. # zsh will try to run background things at a lower priority
  41. # which wondows doesn't allow this is a hot workaround
  42. case $(uname -a) in
  43. *Microsoft* unsetopt BG_NICE ;;
  44. esac
  45. # ssh
  46. # Example aliases
  47. # alias zshconfig="mate ~/.zshrc"
  48. # alias ohmyzsh="mate ~/.oh-my-zsh"
  49. # general bash aliases
  50. alias ls="ls -abp --color=auto"
  51. alias nano="vim"
  52. alias ..="cd .."
  53. alias size="echo du -sh && du -sh"
  54. # Bash Manager Things
  55. alias roosay="python3 /home/jeff/scripts/bash_manager/src/roosay.py"
  56. alias ss="python3 /home/jeff/scripts/bash_manager/src/ssh_manager.py"
  57. alias ssh_manager="python3 /home/jeff/scripts/bash_manager/src/ssh_manager.py"
  58. alias mm="python3 /home/jeff/scripts/bash_manager/src/mount_ssh_drive.py"
  59. alias ssh-mount="python3 /home/jeff/scripts/bash_manager/src/mount_ssh_drive.py"
  60. alias quote="python3 /home/jeff/scripts/bash_manager/src/quote.py"
  61. # Alias for markdown paragraph formatter
  62. alias pp="python3 /home/jeff/scripts/RandomScripts/other/markdownParagraphFormatter.py"
  63. # Alias for moving to common directories
  64. alias blog="cd /home/jeff/Documents/git/NodeJSBlog/blogContent/posts"
  65. # auto ls when you change directories
  66. function cd {
  67. builtin cd "$@" && ls
  68. }
  69. # Function that removes all files with a specific extension.
  70. function begone
  71. {
  72. if [ $# -eq 1 ]
  73. then
  74. echo "Removing files with $1 extension RECURSIVELY!"
  75. find . -name "*.$1" -type f -delete
  76. ls
  77. else
  78. echo "Must pass in extension to begone!"
  79. fi
  80. }
  81. # recursively searches for a text fragment in a file
  82. function findme
  83. {
  84. grep -nr "$1"
  85. }
  86. # removes meta data from images
  87. function strip
  88. {
  89. echo "Removing image meta data on png and jpg images"
  90. mogrify -strip ./*.jpg
  91. mogrify -strip ./*.JPG
  92. mogrify -strip ./*.png
  93. mogrify -strip ./*.PNG
  94. }
  95. # displays quote when terminal opens
  96. quote
  97. eval $(thefuck --alias)