This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function git | |
if test $argv[1] = commit; and contains -- --amend $argv | |
git_commit_safe_amend $argv[2..-1] | |
else | |
command git $argv | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# source this file in your scripts and use as so: | |
# <command> & spin "Text to display while command is running" | |
function spin() { | |
local tag="$1" | |
local pid=$! # get the pid of the last background process | |
local sp="⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏" | |
local i=1 |