Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Function definitions
- set -U fish_greeting "I Use Arch BTW
- "
- function cp
- command cp -i $argv
- end
- function nvrc
- command ranger ~/.config/nvim
- end
- function ta
- command tmux attach $argv
- end
- function mv
- command mv -i $argv
- end
- function rm
- command trash -v $argv
- end
- function mkdir
- command mkdir -p $argv
- end
- function performance
- command sudo auto-cpufreq --force performance
- end
- function powersave
- command sudo auto-cpufreq --force powersave
- end
- function mkdir
- command mkdir -p $argv
- end
- # Change directory functions
- function security
- sudo rkhunter --checkall
- end
- function github
- cd ~/Documents/GitHub
- end
- function books
- ranger ~/Documents/GitHub/hyprland-dotfiles/Books
- end
- function cuda
- cd ~/Documents/GitHub/100-daysofcuda/
- end
- function torch
- ranger ~/Documents/GitHub/learning/pytorch/
- end
- # Show open ports function
- function openports
- sudo netstat -nape --inet $argv
- end
- # Other functions
- function grub-update
- sudo grub-mkconfig -o /boot/grub/grub.cfg
- end
- function update
- paru -Syu --noconfirm
- end
- function clone
- git clone $argv
- end
- function i
- paru -S --noconfirm $argv
- end
- function dl
- yt-dlp -f mp4 $argv
- end
- function remove
- paru -R --noconfirm $argv
- end
- function n
- neofetch
- end
- function ff
- fastfetch --logo-type kitty
- end
- # Custom ls function with eza (if installed)
- function ls
- eza --icons=always --color=always -a $argv
- end
- # Custom ll function with eza (if installed)
- function ll
- eza --icons=always --color=always -la $argv
- end
- function cd
- builtin cd $argv; and ls -ahl
- end
- alias vim=nvim
- # >>> conda initialize >>>
- # !! Contents within this block are managed by 'conda init' !!
- if test -f /home/prateek/Documents/GitHub/miniforge3/bin/conda
- eval /home/prateek/Documents/GitHub/miniforge3/bin/conda "shell.fish" "hook" $argv | source
- else
- if test -f "/home/prateek/Documents/GitHub/miniforge3/etc/fish/conf.d/conda.fish"
- . "/home/prateek/Documents/GitHub/miniforge3/etc/fish/conf.d/conda.fish"
- else
- set -x PATH "/home/prateek/Documents/GitHub/miniforge3/bin" $PATH
- end
- end
- if test -f "/home/prateek/Documents/GitHub/miniforge3/etc/fish/conf.d/mamba.fish"
- source "/home/prateek/Documents/GitHub/miniforge3/etc/fish/conf.d/mamba.fish"
- end
- # <<< conda initialize <<<
- atuin init fish | source
- mamba activate torchenv
Advertisement
Add Comment
Please, Sign In to add comment