From 73118647f995ad36c74050c85fcbc2810a031e7b Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Thu, 30 Apr 2020 08:11:18 +0200 Subject: [PATCH] changed alias and added dotf bash completion --- .alias | 2 +- .bashrc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.alias b/.alias index 4214986..940ddb7 100644 --- a/.alias +++ b/.alias @@ -2,5 +2,5 @@ alias rpmlistkeys="sudo rpm --query gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEAS alias ip='ip -color' alias weather='curl http://v2.wttr.in/Stockholm' alias gpg='gpg2' -alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME' +alias dotf='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME' alias ls_dotfiels='/usr/bin/git --git-dir=$HOME/.dotfiles ls-tree --full-tree -r --name-only HEAD' diff --git a/.bashrc b/.bashrc index da215a7..b8fdb6c 100644 --- a/.bashrc +++ b/.bashrc @@ -61,3 +61,5 @@ type go >/dev/null 2>&1 && export GOPATH=$(go env GOPATH) [[ -f ~/.functions.sh ]] && source ~/.functions.sh [[ -f ~/Develop/sps/completion.sh ]] && source ~/Develop/sps/completion.sh [[ -f ~/Develop/MyDot/completion.sh ]] && source ~/Develop/MyDot/completion.sh + +[[ "$(type -t dotf)" == "alias" ]] && [[ "$(type -t __git_complete)" == "function" ]] && __git_complete dotf _git