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
68bc4792
Commit
68bc4792
authored
May 18, 2020
by
Leeward Bound
💼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding zshrc secrets
parent
92e8f498
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
.zsh/config/kubectl.zsh
.zsh/config/kubectl.zsh
+1
-0
.zshrc
.zshrc
+17
-2
No files found.
.zsh/config/kubectl.zsh
0 → 100644
View file @
68bc4792
export
KUBECONFIG
=
"/home/linked/.kube/k3s:/home/linked/.kube/config:/home/linked/.kube/command"
.zshrc
View file @
68bc4792
...
...
@@ -49,7 +49,22 @@ _load_settings() {
_load_settings
"
$HOME
/.zsh/config"
# Local config
[[
-f
~/.zshrc.local
]]
&&
echo
$blue
"Loading
~/.zshrc.local..."
&&
source
~/.zshrc.local
[[
-f
~/.zshrc.local
]]
&&
echo
$blue
"[LOADING]
~/.zshrc.local..."
&&
source
~/.zshrc.local
# aliases
[[
-f
~/.aliases
]]
&&
source
~/.aliases
[[
-f
~/.aliases
]]
&&
echo
$blue
"[LOADING] ~/.aliases"
&&
source
~/.aliases
# Secrets
if
[[
-f
~/.secrets/zsh/env
]]
;
then
cd
~/.secrets
if
git ls-tree
-r
master
--name-only
|
sed
's/.*/"&"/'
| xargs
grep
-qsPa
"
\x
00GITCRYPT"
;
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
echo
$green
"[UNLOCKED] Loading ~/.secrets/zsh/env..."
;
source
~/.secrets/zsh/env
else
echo
$red
"[ERROR] ~/.secrets couldn't be unlocked..."
fi
;
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