fork download
  1. # choices
  2. my_active_nvim="nvim"
  3. # alias nvim='my_active_nvim'
  4. alias vim='$my_active_nvim'
  5. alias vi='$my_active_nvim'
  6. #terminal="alacritty"
  7. #TERMINAL="alacritty"
  8. #hdd="/mnt/hdd"
  9. note="$hdd/things-in-my-mind.txt"
  10. quotes="/mnt/d/my-dotfiles/quotes.txt"
  11. export MANPAGER='nvim +Man!'
  12. export MANWIDTH=999 #so important with > export MANPAGER='nvim +Man!'
  13. # bash prompt theming
  14. PS1='\e[3;33m(\@)\e[m\u:\h\e[1;36m[\w]\e[m$ '
  15.  
  16. # nvim things
  17. alias nbp='$my_active_nvim ~/.bashrc-personal'
  18. alias npb=' $my_active_nvim ~/.bashrc-personal'
  19. alias nb=' $my_active_nvim ~/.bashrc'
  20. alias nv='$my_active_nvim ~/.config/nvim/init.lua'
  21. alias nqtile='$my_active_nvim ~/.config/qtile/config.py'
  22. alias nxmo='$my_active_nvim ~/.xmonad/xmonad.hs'
  23. alias nhyper='$my_active_nvim ~/.config/hypr/hyprland.conf'
  24. alias nalac='$my_active_nvim ~/.config/alacritty/alacritty.toml'
  25. alias nkit='$my_active_nvim ~/.config/kitty/kitty.conf'
  26. alias nsx='$my_active_nvim ~/.config/qtile/sxhkd/sxhkdrc'
  27. alias nlv='$my_active_nvim ~/.config/lvim/config.lua'
  28.  
  29.  
  30. # sourcing
  31. alias sb='source ~/.bashrc'
  32.  
  33. # pacman & aur helpers
  34. alias inst='sudo pacman -S'
  35. alias isnt='sudo pacman -S'
  36. alias pinst='paru -S'
  37. alias yinst='yay -S'
  38. alias search='pacman -Ss'
  39. alias ysearch='yay -Ss'
  40. alias psearch='paru -Ss'
  41.  
  42. # faster
  43. alias cd..='cd ..'
  44. alias cd.='cd ..'
  45. alias cd~='cd ~'
  46. alias cdc='cd ~/.config ;ls'
  47. alias cdh='cd ~'
  48. alias cdvb='cd /mnt/d/st/obsi/vault_bank'
  49. alias cdcore='cd /mnt/d/core'
  50. alias cdsol="cd /mnt/d/solve"
  51. alias cdesk="cd /mnt/c/Users/dt/Desktop"
  52. alias ls='ls -lah --color=auto'
  53. alias ter='$terminal'
  54. alias sk="nvim $hdd/things-in-my-mind.txt"
  55. alias nnote="nvim $note"
  56. alias file="thunar ."
  57. alias lv="lvim"
  58. alias xcopy="xclip -sel clip"
  59. alias ndswap="rm ~/.local/state/nvim/swap/*" # delete swap
  60. alias dtlog="sudo pkill -u dt"
  61. alias fzf='fzf --preview "bat --color=always --style=numbers --line-range=:500 {}"'
  62. alias removeneovim=""
  63. alias camfix='sudo rmmod v4l2loopback ; sudo modprobe v4l2loopback'
  64. alias td='termdown '
  65.  
  66. # listings of important files
  67. alias lsalac='cd ~/.config/alacritty ; ls'
  68. alias nvls='cd ~/.config/nvim ; ls'
  69. alias lsqtile='cd ~/.config/qtile ; ls'
  70. alias lsxmo='cd ~/.xmonad ; ls'
  71. alias lshyper='cd ~/.config/hypr ; ls'
  72. alias lssx='nvim ~/.config/qtile/sxhkd/sxhkdrc ; ls'
  73. alias lslv='cd ~/.config/lvim ; ls'
  74. alias lskit='cd ~/.config/kitty ; ls'
  75.  
  76. # for lunar vim
  77. export PATH=/home/dt/.local/bin:$PATH
  78. # for dotnet
  79. export PATH=/home/dt/.dotnet:$PATH
  80. # for doom
  81. export PATH=/home/dt/.config/emacs/bin:$PATH
  82. # autostart with bash
  83. # cal; date
  84.  
  85. # alias h="history | cut -c 8- | sort | uniq | fzf | tr -d '\n' | xclip -selection c" # bugswriter version
  86. alias h="history | cut -c 8- | sort | uniq | fzf | tr -d '\n' && echo"
  87. # alias h="history | cut -c 8- | sort | uniq | fzf | tr -d '\n' | wl-copy" # wl-clipboard is huge space
  88. alias rondo="cdcore ; \ls | shuf | head -n 1"
  89. PATH="$PATH:/opt/nvim-linux-x86_64/bin"
  90.  
  91.  
  92. function print_random_quote() {
  93. if [ -f "$quotes" ]; then
  94. # Get the number of lines in the file
  95. local num_lines=$(wc -l < "$quotes")
  96. # Generate a random line number
  97. local random_line=$((RANDOM % num_lines + 1))
  98. # Print the random line
  99. sed -n "${random_line}p" "$quotes"
  100. else
  101. echo "quotes.txt not found in your home directory."
  102. fi
  103. }
  104.  
  105. # Call the function when bash starts
  106. print_random_quote
  107.  
  108. alias now='mkdir "$(date +'%I%p-%Y-%m-%d')"'
  109. # alias bakacmux='tmux new -s baka -d && tmux rename-window -t baka:0 "main" && tmux new-window -t baka:1 -d && tmux new-window -t baka:2 -d && tmux new-window -t baka:3 -d && tmux attach -t baka'
  110. alias bakacmux='
  111. tmux new-session -s baka -d; # Create session detached
  112. tmux rename-window -t baka:0 "extra"; # Rename window 0
  113. tmux send-keys -t baka:0 "nvim" C-m; # Run command in window 0
  114.  
  115. tmux new-window -t baka:1 -n "doc"; # Create window 1 with name
  116. tmux send-keys -t baka:1 "nvim /mnt/d/doc.txt" C-m; # Run command in window 1
  117.  
  118. tmux new-window -t baka:2 -n "grep"; # Create window 2 with name
  119. tmux send-keys -t baka:2 "cdvb; nvim ." C-m; # Run command in window 2
  120.  
  121. tmux new-window -t baka:3 -n "notes"; # Create window 3 with name
  122. tmux send-keys -t baka:3 "cdesk; nvim new.txt" C-m; # Run command in window 3
  123.  
  124.  
  125. tmux attach -t baka; # Attach to session
  126. '
  127.  
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
quotes.txt not found in your home directory.