From d769885d8fb4bda66c00302916482ae021470191 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 6 Jul 2024 00:00:00 +0100 Subject: [PATCH] Flatten Code directories --- bin/update-all-git-repos | 2 +- flake.nix | 2 +- lib/shared/modules/tmux.nix | 4 ++-- lib/shared/modules/zsh/aliases.nix | 2 +- lib/shared/scripts/t.nix | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/update-all-git-repos b/bin/update-all-git-repos index c72d25a..d939fc8 100755 --- a/bin/update-all-git-repos +++ b/bin/update-all-git-repos @@ -6,7 +6,7 @@ set -o errexit set -o nounset -dirs=$(find ~/Code/personal ~/Code/work -mindepth 1 -maxdepth 2 -type d -name .git -not -path '*/*.old/*') +dirs=$(find ~/Code -mindepth 1 -maxdepth 2 -type d -name .git -not -path '*/*.old/*') for dir in $dirs; do repo_path="${dir%/.git}" diff --git a/flake.nix b/flake.nix index ecef7a8..73bc019 100644 --- a/flake.nix +++ b/flake.nix @@ -9,7 +9,7 @@ opdavies-nvim.inputs.nixpkgs.follows = "nixpkgs"; opdavies-nvim.url = "github:opdavies/opdavies.nvim"; - # opdavies-nvim.url = "path:/home/opdavies/Code/personal/opdavies.nvim"; + # opdavies-nvim.url = "path:/home/opdavies/Code/opdavies.nvim"; }; outputs = diff --git a/lib/shared/modules/tmux.nix b/lib/shared/modules/tmux.nix index b227580..9908112 100644 --- a/lib/shared/modules/tmux.nix +++ b/lib/shared/modules/tmux.nix @@ -97,8 +97,8 @@ in bind-key -T copy-mode-vi 'C-\' select-pane -l bind-key -r F new-window t - bind-key -r D run-shell "t ~/Code/github.com/opdavies/dotfiles.nix" - bind-key -r N run-shell "t ~/Code/github.com/opdavies/opdavies.nvim" + bind-key -r D run-shell "t ~/Code/dotfiles.nix" + bind-key -r N run-shell "t ~/Code/opdavies.nvim" bind-key -r W run-shell "t ~/Documents/wiki" set -g @resurrect-strategy-nvim 'session' diff --git a/lib/shared/modules/zsh/aliases.nix b/lib/shared/modules/zsh/aliases.nix index 3365d14..8b1e0df 100644 --- a/lib/shared/modules/zsh/aliases.nix +++ b/lib/shared/modules/zsh/aliases.nix @@ -10,5 +10,5 @@ secrets = ''doppler --project "$(whoami)" run''; tag = "tag-release"; wt = "git worktree"; - vss = "LC_ALL=C sort --unique ~/Code/personal/opdavies.nvim/spell/en.utf-8.add --output ~/Code/personal/opdavies.nvim/spell/en.utf-8.add"; + vss = "LC_ALL=C sort --unique ~/Code/opdavies.nvim/spell/en.utf-8.add --output ~/Code/personal/opdavies.nvim/spell/en.utf-8.add"; } diff --git a/lib/shared/scripts/t.nix b/lib/shared/scripts/t.nix index f5aff03..f2bc7ee 100644 --- a/lib/shared/scripts/t.nix +++ b/lib/shared/scripts/t.nix @@ -16,7 +16,7 @@ else # Get the session name from fuzzy-finding list of directories and generating a # tmux-safe version. - items=$(find ~/Code/* ~/Code ~ ~/Documents /tmp \ + items=$(find ~/Code /tmp \ -maxdepth 1 -mindepth 1 -type d \ ! -name "*-old" \ ! -name "*.old"