pez-infra/ansible/dotfiles/config/fish/conf.d/functions.fish
Rasmus Wejlgaard 737d6e0bc1 initial commit
2026-03-28 12:39:41 +00:00

20 lines
513 B
Fish

# Replicate the behavior of `!!` in bash
function last_history_item
echo $history[1]
end
abbr -a !! --position anywhere --function last_history_item
# lookup various commands/syntax in a pinch
function cheat --description "help <field> <topic>"
set args (echo $argv[2..-1] | tr ' ' '+')
curl "cht.sh/$argv[1]/$args"
end
# update master and create a branch with value: $1
function gitissue
git reset --hard
git checkout master
git pull origin master
git branch $argv[1]
git checkout $argv[1]
end