From 20cc076a5424ee7d06bd0f942c894be41a3848f7 Mon Sep 17 00:00:00 2001 From: fanyx Date: Thu, 8 Jun 2023 12:47:14 +0200 Subject: [PATCH] Update some stuff --- .alias | 2 +- .config/completions/k | 2 +- .void.bash_aliases | 2 +- README.md | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.alias b/.alias index 321098b..3124d64 100644 --- a/.alias +++ b/.alias @@ -11,7 +11,7 @@ alias cat="bat -pp" alias code="code-oss" # dotfiles -alias dot="git --git-dir=$HOME/git/dotfiles/ --work-tree=$HOME" +alias dot="git --git-dir=$HOME/git/.dotfiles/ --work-tree=$HOME" # k8s alias k="kubectl" diff --git a/.config/completions/k b/.config/completions/k index 6a21e3f..260e465 100644 --- a/.config/completions/k +++ b/.config/completions/k @@ -1,5 +1,5 @@ # alias for kubectl to k -source <(kubectl completion bash) +command -v 2>&1 >/dev/null kubectl && source <(kubectl completion bash) complete -o default -F __start_kubectl k diff --git a/.void.bash_aliases b/.void.bash_aliases index da62350..ef668b6 100644 --- a/.void.bash_aliases +++ b/.void.bash_aliases @@ -28,4 +28,4 @@ alias xcln="xr -oO" # Docker alias dc=docker-compose -eval "$(thefuck --alias)" +command -v 2>&1 >/dev/null thefuck && eval "$(thefuck --alias)" diff --git a/README.md b/README.md index 6c8d8d8..29db618 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # dotfiles +`mkdir -p git/.dotfiles && git init --bare git/.dotfiles` +`cd $HOME && git --git-dir=$HOME/git/.dotfiles --work-tree` + Contains .dotfiles for my debian and void distros. Clone and `ln -s` the applicable files to the distro agnotic filenames. e.g.: