Flatten Code directories
This commit is contained in:
parent
766a35d27e
commit
d769885d8f
|
@ -6,7 +6,7 @@
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
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
|
for dir in $dirs; do
|
||||||
repo_path="${dir%/.git}"
|
repo_path="${dir%/.git}"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
opdavies-nvim.inputs.nixpkgs.follows = "nixpkgs";
|
opdavies-nvim.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
opdavies-nvim.url = "github:opdavies/opdavies.nvim";
|
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 =
|
outputs =
|
||||||
|
|
|
@ -97,8 +97,8 @@ in
|
||||||
bind-key -T copy-mode-vi 'C-\' select-pane -l
|
bind-key -T copy-mode-vi 'C-\' select-pane -l
|
||||||
|
|
||||||
bind-key -r F new-window t
|
bind-key -r F new-window t
|
||||||
bind-key -r D run-shell "t ~/Code/github.com/opdavies/dotfiles.nix"
|
bind-key -r D run-shell "t ~/Code/dotfiles.nix"
|
||||||
bind-key -r N run-shell "t ~/Code/github.com/opdavies/opdavies.nvim"
|
bind-key -r N run-shell "t ~/Code/opdavies.nvim"
|
||||||
bind-key -r W run-shell "t ~/Documents/wiki"
|
bind-key -r W run-shell "t ~/Documents/wiki"
|
||||||
|
|
||||||
set -g @resurrect-strategy-nvim 'session'
|
set -g @resurrect-strategy-nvim 'session'
|
||||||
|
|
|
@ -10,5 +10,5 @@
|
||||||
secrets = ''doppler --project "$(whoami)" run'';
|
secrets = ''doppler --project "$(whoami)" run'';
|
||||||
tag = "tag-release";
|
tag = "tag-release";
|
||||||
wt = "git worktree";
|
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";
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
else
|
else
|
||||||
# Get the session name from fuzzy-finding list of directories and generating a
|
# Get the session name from fuzzy-finding list of directories and generating a
|
||||||
# tmux-safe version.
|
# tmux-safe version.
|
||||||
items=$(find ~/Code/* ~/Code ~ ~/Documents /tmp \
|
items=$(find ~/Code /tmp \
|
||||||
-maxdepth 1 -mindepth 1 -type d \
|
-maxdepth 1 -mindepth 1 -type d \
|
||||||
! -name "*-old" \
|
! -name "*-old" \
|
||||||
! -name "*.old"
|
! -name "*.old"
|
||||||
|
|
Loading…
Reference in a new issue