Guest User

Untitled

a guest
Mar 12th, 2025
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. # Function definitions
  2.  
  3. set -U fish_greeting "I Use Arch BTW
  4. "
  5.  
  6. function cp
  7. command cp -i $argv
  8. end
  9.  
  10. function nvrc
  11. command ranger ~/.config/nvim
  12. end
  13.  
  14.  
  15. function ta
  16. command tmux attach $argv
  17. end
  18.  
  19. function mv
  20. command mv -i $argv
  21. end
  22.  
  23. function rm
  24. command trash -v $argv
  25. end
  26.  
  27. function mkdir
  28. command mkdir -p $argv
  29. end
  30.  
  31. function performance
  32. command sudo auto-cpufreq --force performance
  33. end
  34.  
  35. function powersave
  36. command sudo auto-cpufreq --force powersave
  37. end
  38.  
  39. function mkdir
  40. command mkdir -p $argv
  41. end
  42.  
  43.  
  44. # Change directory functions
  45. function security
  46. sudo rkhunter --checkall
  47. end
  48.  
  49. function github
  50. cd ~/Documents/GitHub
  51. end
  52.  
  53. function books
  54. ranger ~/Documents/GitHub/hyprland-dotfiles/Books
  55. end
  56.  
  57. function cuda
  58. cd ~/Documents/GitHub/100-daysofcuda/
  59. end
  60.  
  61. function torch
  62. ranger ~/Documents/GitHub/learning/pytorch/
  63. end
  64.  
  65. # Show open ports function
  66. function openports
  67. sudo netstat -nape --inet $argv
  68. end
  69.  
  70. # Other functions
  71. function grub-update
  72. sudo grub-mkconfig -o /boot/grub/grub.cfg
  73. end
  74.  
  75. function update
  76. paru -Syu --noconfirm
  77. end
  78.  
  79. function clone
  80. git clone $argv
  81. end
  82.  
  83.  
  84. function i
  85. paru -S --noconfirm $argv
  86. end
  87.  
  88. function dl
  89. yt-dlp -f mp4 $argv
  90. end
  91.  
  92. function remove
  93. paru -R --noconfirm $argv
  94. end
  95.  
  96. function n
  97. neofetch
  98. end
  99.  
  100. function ff
  101. fastfetch --logo-type kitty
  102. end
  103.  
  104. # Custom ls function with eza (if installed)
  105. function ls
  106. eza --icons=always --color=always -a $argv
  107. end
  108.  
  109. # Custom ll function with eza (if installed)
  110. function ll
  111. eza --icons=always --color=always -la $argv
  112. end
  113.  
  114. function cd
  115. builtin cd $argv; and ls -ahl
  116. end
  117.  
  118. alias vim=nvim
  119.  
  120. # >>> conda initialize >>>
  121. # !! Contents within this block are managed by 'conda init' !!
  122. if test -f /home/prateek/Documents/GitHub/miniforge3/bin/conda
  123. eval /home/prateek/Documents/GitHub/miniforge3/bin/conda "shell.fish" "hook" $argv | source
  124. else
  125. if test -f "/home/prateek/Documents/GitHub/miniforge3/etc/fish/conf.d/conda.fish"
  126. . "/home/prateek/Documents/GitHub/miniforge3/etc/fish/conf.d/conda.fish"
  127. else
  128. set -x PATH "/home/prateek/Documents/GitHub/miniforge3/bin" $PATH
  129. end
  130. end
  131.  
  132. if test -f "/home/prateek/Documents/GitHub/miniforge3/etc/fish/conf.d/mamba.fish"
  133. source "/home/prateek/Documents/GitHub/miniforge3/etc/fish/conf.d/mamba.fish"
  134. end
  135. # <<< conda initialize <<<
  136.  
  137. atuin init fish | source
  138. mamba activate torchenv
  139.  
Advertisement
Add Comment
Please, Sign In to add comment