mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-28 18:28:39 -05:00
61 lines
1.0 KiB
Fish
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
|