X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.bashrc;h=2bd97fb7943faa8fa94e14e5571b90b8889c7768;hp=0a781308b3c304f5c7de22f4d5c14e37c8ebbc3c;hb=24d7f898e5d6e1b5b33730901c3ef678dfad4c2a;hpb=43ea3d5a4c057b1e84fe32d44ede7e6c34033fec diff --git a/.bashrc b/.bashrc index 0a78130..2bd97fb 100644 --- a/.bashrc +++ b/.bashrc @@ -394,6 +394,7 @@ function rpmsrclist } function yumupdate {(ulimit -v unlimited;yum makecache;yum -y --skip-broken update "$@";);} function gitcommit { git commit -a --allow-empty-message -m '' "$@"; } +function git {(unset git;if [ "$1" = "checkout" ];then shift;git checkout --ignore-other-worktrees "$@";else git "$@";fi)} function gpg {(unset gpg; http_proxy= all_proxy= HTTP_PROXY= ALL_PROXY= gpg "$@"; );} function swap() {( set -ex;local TMPFILE=tmp.$$;[ $# = 2 ] && mv "$1" $TMPFILE && mv "$2" "$1" && mv $TMPFILE "$2" && echo done )} alias gthumb='rm -rf ~/.cache/thumbnails/fail/;gthumb'