TheRepoClub-DotFiles/.config/fish/functions/99_commands.fish
2024-08-19 16:43:26 +01:00

61 lines
1.0 KiB
Fish

# Unlock user from passwords
function ulock --description 'alias ulock="faillock --reset"'
command faillock --reset
end
# Check ports for current user
function ports --description 'alias ports="sudo netstat -tulanp"'
command sudo netstat -tulanp
end
# Set permissions for user
function setperm
command sudo chown $USER:$USER $argv
end
# Stow commands
function stowadd
command stow -St ~ $argv
end
function stowremove
command stow -Dt ~ $argv
end
# Clear command
function clear
command reset && shellfetch
end
# free
function free
command free -mt
end
# continue download
function wget
command wget -c $argv
end
# grub update
function update-grub
command sudo grub-mkconfig -o /boot/grub/grub.cfg
end
# add new fonts
function update-fc
command fc-cache -fv
end
function clear-qtile
echo "No errors found." >~/.local/share/qtile/qtile.log
end
function reload
source ~/.config/fish/config.fish
end
function dotfiles
command git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $argv
end