Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envrcd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
isgphys
envrcd
Commits
73abe3f1
Commit
73abe3f1
authored
2 years ago
by
Patrick Frei
Browse files
Options
Downloads
Patches
Plain Diff
fixed envrcd for profile frei
parent
6b3b3a7b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
profile/frei/envrcd.d/00-config
+1
-1
1 addition, 1 deletion
profile/frei/envrcd.d/00-config
profile/frei/envrcd.d/10-envvars
+7
-7
7 additions, 7 deletions
profile/frei/envrcd.d/10-envvars
profile/frei/envrcd.d/20-aliases
+3
-3
3 additions, 3 deletions
profile/frei/envrcd.d/20-aliases
with
11 additions
and
11 deletions
profile/frei/envrcd.d/00-config
+
1
−
1
View file @
73abe3f1
...
@@ -4,4 +4,4 @@
...
@@ -4,4 +4,4 @@
source_profile_if_exists
"default"
source_profile_if_exists
"default"
# set the path to this profile
# set the path to this profile
export
ENVRCD_PROFILE_PATH
=
"
${
ENVRCD_PATH
}
/profile/
glob
i"
export
ENVRCD_PROFILE_PATH
=
"
${
ENVRCD_PATH
}
/profile/
fre
i"
This diff is collapsed.
Click to expand it.
profile/frei/envrcd.d/10-envvars
+
7
−
7
View file @
73abe3f1
...
@@ -4,17 +4,17 @@
...
@@ -4,17 +4,17 @@
export
PATH
=
~/bin:
${
ENVRCD_PROFILE_PATH
}
/bin:
${
PATH
}
export
PATH
=
~/bin:
${
ENVRCD_PROFILE_PATH
}
/bin:
${
PATH
}
# --- git ---
# --- git ---
if
[
"
${
ENVRCD_USER
}
"
==
"
glob
i"
]
;
then
if
[
"
${
ENVRCD_USER
}
"
==
"
fre
i"
]
;
then
export
GIT_AUTHOR_NAME
=
'
Christian Ringger
'
export
GIT_AUTHOR_NAME
=
'
Patrick Frei
'
export
GIT_AUTHOR_EMAIL
=
'
ringger
@phys.ethz.ch'
export
GIT_AUTHOR_EMAIL
=
'
frei
@phys.ethz.ch'
export
GIT_COMMITTER_NAME
=
"
${
GIT_AUTHOR_NAME
}
"
export
GIT_COMMITTER_NAME
=
"
${
GIT_AUTHOR_NAME
}
"
export
GIT_COMMITTER_EMAIL
=
"
${
GIT_AUTHOR_EMAIL
}
"
export
GIT_COMMITTER_EMAIL
=
"
${
GIT_AUTHOR_EMAIL
}
"
fi
fi
# --- debian packaging ---
# --- debian packaging ---
if
[
"
${
ENVRCD_USER
}
"
==
"
glob
i"
]
;
then
if
[
"
${
ENVRCD_USER
}
"
==
"
fre
i"
]
;
then
export
DEBEMAIL
=
"
ringger
@phys.ethz.ch"
export
DEBEMAIL
=
"
frei
@phys.ethz.ch"
export
DEBFULLNAME
=
"
Christian Ringger
"
export
DEBFULLNAME
=
"
Patrick Frei
"
fi
fi
# ignore these commands for history
# ignore these commands for history
...
@@ -22,7 +22,7 @@ export HISTIGNORE=""
...
@@ -22,7 +22,7 @@ export HISTIGNORE=""
# --- ansible ---
# --- ansible ---
#if [ "${ENVRCD_USER}" == "
glob
i" ] && [ "${USER}" == "
chringge
" ]; then
#if [ "${ENVRCD_USER}" == "
fre
i" ] && [ "${USER}" == "
frei
" ]; then
# #export ANSIBLE_CONFIG="~/.ansible.cfg"
# #export ANSIBLE_CONFIG="~/.ansible.cfg"
# export ANSIBLE_STRATEGY_PLUGINS="~/.ansible/mitogen/ansible_mitogen/plugins/strategy"
# export ANSIBLE_STRATEGY_PLUGINS="~/.ansible/mitogen/ansible_mitogen/plugins/strategy"
# export ANSIBLE_STRATEGY="mitogen_linear"
# export ANSIBLE_STRATEGY="mitogen_linear"
...
...
This diff is collapsed.
Click to expand it.
profile/frei/envrcd.d/20-aliases
+
3
−
3
View file @
73abe3f1
#!/bin/bash
#!/bin/bash
alias
kc
=
'eval $(keychain --nogui --eval --agents ssh,gpg --quick id_rsa
99EEA27988963CFE
)'
alias
kc
=
'eval $(keychain --nogui --eval --agents ssh,gpg --quick id_rsa
120465DFCAFEF89D
)'
alias
kcs
=
'eval $(keychain --nogui --eval --agents ssh --quick id_rsa)'
alias
kcs
=
'eval $(keychain --nogui --eval --agents ssh --quick id_rsa)'
unalias
git
unalias
git
if
[
"
${
ENVRCD_USER
}
"
!=
"
glob
i"
]
||
[
"
${
HOSTNAME
}
"
!=
"
portus
"
]
||
[
"
${
USER
}
"
!=
"
chringge
"
]
;
then
if
[
"
${
ENVRCD_USER
}
"
!=
"
fre
i"
]
||
[
"
${
HOSTNAME
}
"
!=
"
reparong
"
]
||
[
"
${
USER
}
"
!=
"
frei
"
]
;
then
alias
git
=
"HOME=
${
ENVRCD_PROFILE_PATH
}
git"
alias
git
=
"HOME=
${
ENVRCD_PROFILE_PATH
}
git"
fi
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment