From f63681af3b523a8dd6cc79c400dd45d9bb699e92 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Sun, 23 Sep 2018 15:26:13 +0200 Subject: [PATCH] XDG directories mapped to Nextcloud --- .config/user-dirs.dirs | 14 +++++++------- README.md | 2 +- bin/dotfiles.sh | 17 ++++++++--------- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs index 7f9a959..e8ef005 100644 --- a/.config/user-dirs.dirs +++ b/.config/user-dirs.dirs @@ -5,11 +5,11 @@ # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an # absolute path. No other format is supported. # -XDG_DESKTOP_DIR="$HOME/Desktop" +XDG_DESKTOP_DIR="$HOME/Nextcloud/Desktop" XDG_DOWNLOAD_DIR="$HOME/Downloads" -XDG_TEMPLATES_DIR="$HOME/Templates" -XDG_PUBLICSHARE_DIR="$HOME/Public" -XDG_DOCUMENTS_DIR="$HOME/Documents" -XDG_MUSIC_DIR="$HOME/Music" -XDG_PICTURES_DIR="$HOME/Pictures" -XDG_VIDEOS_DIR="$HOME/Videos" +XDG_TEMPLATES_DIR="$HOME/Nextcloud/Templates" +XDG_PUBLICSHARE_DIR="$HOME/Nextcloud/Public" +XDG_DOCUMENTS_DIR="$HOME/Nextcloud/Documents" +XDG_MUSIC_DIR="$HOME/Nextcloud/Music" +XDG_PICTURES_DIR="$HOME/Nextcloud/Pictures" +XDG_VIDEOS_DIR="$HOME/Nextcloud/Videos" diff --git a/README.md b/README.md index bab71a7..74bd589 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,6 @@ > $ ./dotfiles.sh -3) Now you can manage dotfiles with the command 'dotfiles' (alias for git) +3) Now you can manage dotfiles with the command 'dit' (alias for git on dotfiles) > $ dotfiles diff --git a/bin/dotfiles.sh b/bin/dotfiles.sh index 34a928a..e9476e2 100755 --- a/bin/dotfiles.sh +++ b/bin/dotfiles.sh @@ -1,17 +1,16 @@ #!/usr/bin/env bash -git init --bare $HOME/.dotfiles - -# Define githome function -function dotfiles() +# Define dit (dotfiles-git) function +function dit() { git --git-dir=$HOME/.dotfiles --work-tree=$HOME "$@" } # Initial setup -dotfiles config --local status.showUntrackedFiles no -dotfiles remote add origin git@jaza.me:jaz/dotfiles.git -dotfiles fetch -dotfiles reset --hard origin/master -dotfiles branch -u origin/master +dit init +dit config --local status.showUntrackedFiles no +dit remote add origin git@jaza.me:jaz/dotfiles.git +dit fetch +dit reset --hard origin/master +dit branch -u origin/master -- 2.43.0