From 7952033da2d8a90cb0f9a30150cf6a45c6492b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Sun, 18 Oct 2020 13:59:23 +0000 Subject: Remove unused dotfiles --- old/config/fish/functions/__parse_git_branch.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 old/config/fish/functions/__parse_git_branch.fish (limited to 'old/config/fish/functions/__parse_git_branch.fish') diff --git a/old/config/fish/functions/__parse_git_branch.fish b/old/config/fish/functions/__parse_git_branch.fish new file mode 100644 index 0000000..42b46fb --- /dev/null +++ b/old/config/fish/functions/__parse_git_branch.fish @@ -0,0 +1,4 @@ +function __parse_git_branch -d "Parse current Git branch name" + command git symbolic-ref --short HEAD ^/dev/null; + or command git show-ref --head -s --abbrev | head -n1 ^/dev/null +end -- cgit v1.2.3