-
Notifications
You must be signed in to change notification settings - Fork 0
fix keychain #1479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
fix keychain #1479
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a7ebeae
fix: keychain
shunkakinoki 19b4216
chore: update
shunkakinoki 7d8d8fa
chore: update
shunkakinoki a3539dd
chore: update
shunkakinoki d588d75
chore: update
shunkakinoki 69a294c
chore: update
shunkakinoki 6a06968
chore: update
shunkakinoki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,8 @@ | |
| }; | ||
|
|
||
| shellAliases = { | ||
| copy = "clipboard-copy"; | ||
| paste = "clipboard-paste"; | ||
| rm = "gomi"; | ||
| }; | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
home-manager/programs/fish/functions/__tmux_bootstrap_default_session.fish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| function __tmux_bootstrap_default_session --description "Create built-in tmux sessions without tmuxinator" | ||
| set -l session_name $argv[1] | ||
| set -l dotfiles_root ~/dotfiles | ||
|
|
||
| switch $session_name | ||
| case primary mobile desktop | ||
| tmux new-session -d -s $session_name -n btop | ||
| if test $status -ne 0 | ||
| tmux has-session -t $session_name 2>/dev/null | ||
| return $status | ||
| end | ||
|
|
||
| if not begin | ||
| tmux send-keys -t $session_name:0 btop C-m | ||
| and tmux new-window -c $dotfiles_root -t $session_name:1 -n dotfiles | ||
| and tmux split-window -c $dotfiles_root -t $session_name:1 | ||
| and tmux select-layout -t $session_name:1 even-horizontal | ||
| and tmux new-window -t $session_name:2 -n $session_name | ||
| and tmux select-window -t $session_name:0 | ||
| and tmux select-pane -t $session_name:0.0 | ||
| end | ||
| tmux kill-session -t $session_name 2>/dev/null | ||
| return 1 | ||
| end | ||
|
|
||
| case work | ||
| tmux new-session -d -s work -n editor | ||
| if test $status -ne 0 | ||
| tmux has-session -t work 2>/dev/null | ||
| return $status | ||
| end | ||
|
|
||
| if not begin | ||
| tmux send-keys -t work:0 nvim C-m | ||
| and tmux new-window -t work:1 -n shell | ||
| and tmux new-window -t work:2 -n work | ||
| and tmux select-window -t work:0 | ||
| and tmux select-pane -t work:0.0 | ||
| end | ||
| tmux kill-session -t work 2>/dev/null | ||
| return 1 | ||
| end | ||
|
|
||
| case '*' | ||
| echo "Unknown built-in tmux session '$session_name'" >&2 | ||
| return 1 | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The detection of the
tmux-resurrectrestore script happens before ensuring the tmux server is running. If the server is not already active,tmux list-keyswill fail, and therestorevariable will be empty. Consequently, the subsequent attempt to restore the session (lines 21-38) will be skipped even if a restore script is configured. The detection should be moved after the bootstrap session is created to ensure the server is reachable.