-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: swicth from dotdrop to chezmoi
- Loading branch information
Showing
40 changed files
with
61 additions
and
449 deletions.
There are no files selected for viewing
This file contains 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,4 @@ | ||
.envrc | ||
README.md | ||
archlinux-gnome-install.sh | ||
mise.toml |
This file contains 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,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
BITWARDEN_SESSION_FILE_PATH=/tmp/bitwarden-session | ||
|
||
# Check if bw cli is installed | ||
if [[ -x "$(command -v bw)" ]]; then | ||
if [[ -a $BITWARDEN_SESSION_FILE_PATH ]]; then | ||
BW_SESSION=$(cat $BITWARDEN_SESSION_FILE_PATH) | ||
export BW_SESSION | ||
fi | ||
# Login to bitwarden if not logged | ||
if [[ "$(bw status | jq -r .status)" == "unauthenticated" ]]; then | ||
BW_SESSION=$(bw login | grep "export BW_SESSION" | cut -d "=" -f 2- | sed 's/"//g') | ||
echo "$BW_SESSION" > $BITWARDEN_SESSION_FILE_PATH | ||
export BW_SESSION | ||
# Unlock bitwarden if locked | ||
elif [[ "$(bw status | jq -r .status)" == "locked" ]]; then | ||
BW_SESSION=$(bw unlock | grep "export BW_SESSION" | cut -d "=" -f 2- | sed 's/"//g') | ||
echo "$BW_SESSION" > $BITWARDEN_SESSION_FILE_PATH | ||
export BW_SESSION | ||
fi | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[tools] | ||
python = {version="3.11", virtualenv=".venv"} | ||
direnv = '2.34.0' | ||
bitwarden = '2024.2.1' |
File renamed without changes
File renamed without changes
This file contains 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 was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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 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
Submodule dotdrop
deleted from
5df2e1
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.