Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
user-zsh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Salt Packets
user-zsh
Commits
13fe968e
Commit
13fe968e
authored
May 19, 2020
by
Leeward Bound
💼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating zshrc to use secrets locked binary
parent
e2ad86bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
.zshrc
.zshrc
+6
-4
No files found.
.zshrc
View file @
13fe968e
...
...
@@ -55,17 +55,19 @@ _load_settings "$HOME/.zsh/config"
[[
-f
~/.aliases
]]
&&
echo
$blue
"[LOADING] ~/.aliases"
&&
source
~/.aliases
# Secrets
if
[[
-f
~/.secrets/zsh/env
]]
;
then
pushd
-q
~/.secrets
if
git ls-tree
-r
master
--name-only
|
sed
's/.*/"&"/'
| xargs
grep
-qsPa
"
\x
00GITCRYPT"
;
then
if
[[
-f
$HOME
/.secrets/locked
]]
;
then
if
$HOME
/.secrets/locked
;
then
echo
$yellow
"[WARNING] ~/.secrets is locked, attempting to open it..."
python3
$HOME
/.secrets/mount_secrets.py
fi
;
if
!
git ls-tree
-r
master
--name-only
|
sed
's/.*/"&"/'
| xargs
grep
-qsPa
"
\x
00GITCRYPT"
;
then
if
!
$HOME
/.secrets/locked
;
then
echo
$green
"[UNLOCKED] Loading ~/.secrets/zsh/env..."
;
source
~/.secrets/zsh/env
else
echo
$red
"[ERROR] ~/.secrets couldn't be unlocked..."
fi
;
popd
-q
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment