.bashrc 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. # This will make all subdirectories in my python scripts folder in the PATH.
  2. export PATH="$PATH:$(find "/c/SGZ_Pro/Hobbys/coding-projects/python-projects" -mindepth 1 -maxdepth 2 -type d | tr '\n' ':' | sed 's/:*$//'):/c/SGZ_Pro/Hobbys/coding-projects/fzf-scripts:/c/SGZ_Pro/Hobbys/coding-projects/bash:/c/SGZ_Pro/z-Apps_Drivers/node-v18.12.1-win-x64/node-v18.12.1-win-x64"
  3. export PS1="[\[\033[01;34m\]\w\[\033[00m\]]\$(__git_ps1)$ "
  4. export LC_ALL=en_US.utf8
  5. export EDITOR=vim
  6. man() {
  7. base_url="http://man.he.net/?topic="
  8. target_cmd="${1:?No command specified}"
  9. target_url="${base_url}${target_cmd}&section=all"
  10. curl -v --silent "${target_url}" 2>&1 | sed -n "/<pre>/,/<\/pre>/p"
  11. }
  12. # Got from https://github.com/gokcehan/lf/blob/master/etc/lfcd.sh
  13. lf () {
  14. tmp="$(mktemp)"
  15. fm -last-dir-path="$tmp" "$@"
  16. if [ -f "$tmp" ]; then
  17. dir="$(cat "$tmp")"
  18. rm -f "$tmp"
  19. if [ -d "$dir" ]; then
  20. if [ "$dir" != "$(pwd)" ]; then
  21. cd "$dir"
  22. fi
  23. fi
  24. fi
  25. }
  26. alias dumbasslivestream="mpv https://lbry.bcow.xyz/live/content/fd60b4b0b82f7f4e870c956ab61e9137b7c54680/master.m3u8"
  27. alias python="C:/Users/Stanl/AppData/Local/Microsoft/WindowsApps/PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0/python.exe"
  28. function flaskwork() {
  29. flask -A $1 --debug run
  30. }