Useful Fish Shell Functions - FZF - SSH - GIT - LOG

Published: 29 March 2023
on channel: FIX A PC
364
1

COMMUNITY
HOMEPAGE - https://www.fixapc.net
FORUMS - https://forum.fixapc.net
FACEBOOK -   / fixapcdotnet  
TWITTER -   / fixapcdotnet  
TWITCH -   / fixapcdotnet  
YOUTUBE -    / @fixapc  
ODYSEE - https://odysee.com/@fixapc
TIKTOK -   / fixapc  
DTUBE - https://d.tube/#!/c/fixapc777
VIMEO - https://vimeo.com/user151963004
DISCORD -   / discord  
PATREON - https://www.patreon.com


REQUEST A TUTORIAL - https://fixapc.net/tutorial-request

SUPPORT US
PAYPAL - https://paypal.me/FIXAPC
CASHAPP - https://cash.app/fixapc/Patreon
PATREON -   / fixapc  
GITHUB - https://github.com/fixapc


#FISH FUNCTIONS#############
#SKIM RIPGREP FUNCTION
function skg
sk --ansi -i -c 'rg --color=always --line-number "{}"'
end

#FZF APT SEARCH FUNCTION
function fzfaptsearch
apt-cache search '' | sort | cut --delimiter ' ' --fields 1 | fzf --multi --cycle --reverse --preview 'apt-cache show {1}' | xargs -r sudo \$aptget install -y
end

#CHECK SYSLOG
function checksyslog
sudo cat /var/log/syslog |tail -n30| bat -l log
end

#GIT REMOVE RM
function git-remove-rm
git rm --cached \$argv
end

#CONDA SEARCH
function condasearch
conda search \$argv | awk '{print \$1}' | sort -u | rg -i -v "no|#|loading"
end

#GIT PUSH ALL
function git-pushall
git commit -am push
git push --all --force
end

#GIT ADD FILES AND PUSH ALL
function git-add-push-all
git add -A
git commit -am push
git push --all --force
end

#GIT FORCE PULL
function git-pullall-reset
git reset --hard
git pull --all --force
end

#GIT FORCE PULL
function git-pullall
git fetch --all
git pull --all --force
end

#SSH WITH X11
function sshx
ssh -XCY \$argv
end
########################################


Watch video Useful Fish Shell Functions - FZF - SSH - GIT - LOG online without registration, duration hours minute second in high quality. This video was added by user FIX A PC 29 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 364 once and liked it 1 people.