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
e8d6dd28
Commit
e8d6dd28
authored
1 year ago
by
Sven Mäder
Browse files
Options
Downloads
Patches
Plain Diff
Add aliases and envvars from wsl-home
parent
c3428100
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
profile/rda/envrcd.d/10-envvars
+1
-1
1 addition, 1 deletion
profile/rda/envrcd.d/10-envvars
profile/rda/envrcd.d/20-aliases
+5
-0
5 additions, 0 deletions
profile/rda/envrcd.d/20-aliases
profile/rda/envrcd.d/30-prompt
+1
-1
1 addition, 1 deletion
profile/rda/envrcd.d/30-prompt
with
7 additions
and
2 deletions
profile/rda/envrcd.d/10-envvars
+
1
−
1
View file @
e8d6dd28
...
...
@@ -95,7 +95,7 @@ export BAT_THEME='DarkNeon'
#export XDG_CONFIG_HOME="${ENVRCD_PROFILE_PATH}/.config"
# --- ansible ---
if
[
"
${
ENVRCD_USER
}
"
==
"rda"
]
&&
[
"
${
USER
}
"
==
"maedersv"
]
;
then
if
[
[
"
${
ENVRCD_USER
}
"
==
"rda"
]
]
&&
[
[
"
${
USER
}
"
==
"maedersv"
||
"
${
USER
}
"
==
"rda"
]
]
;
then
#export ANSIBLE_CONFIG="~/.ansible.cfg"
if
[
-d
"
$HOME
/.local/bin"
]
;
then
export
PATH
=
"
${
HOME
}
/.local/bin:
${
PATH
}
"
...
...
This diff is collapsed.
Click to expand it.
profile/rda/envrcd.d/20-aliases
+
5
−
0
View file @
e8d6dd28
...
...
@@ -32,6 +32,11 @@ alias llt='ls -hlFtr'
alias
lat
=
'ls -hlAFtr'
alias
s
=
'ssh'
alias
snk
=
'ssh -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null'
alias
sr
=
'ssh -J rda.ethz.ch'
alias
shci
=
'ssh -J phd-jump-hci.ethz.ch'
alias
shit
=
'ssh -J phd-jump-hit.ethz.ch'
alias
shpt
=
'ssh -J phd-jump-hpt.ethz.ch'
alias
e
=
'ssh maedersv@rda.ethz.ch'
alias
slapcat
=
'slapcat -o ldif-wrap=no'
alias
ldapsearch
=
'ldapsearch -o ldif-wrap=no'
alias
ldapimodify
=
'ldapmodify -Y EXTERNAL -H ldapi://'
...
...
This diff is collapsed.
Click to expand it.
profile/rda/envrcd.d/30-prompt
+
1
−
1
View file @
e8d6dd28
...
...
@@ -45,7 +45,7 @@ function envrcd_prompt_rda {
# Check for normal user account
local
USERAT
=
"
\u
@"
if
[
"
${
ENVRCD_USER
}
"
==
"rda"
]
&&
[
"
${
HOSTNAME
}
"
==
"rda"
]
&&
[
"
${
USER
}
"
==
"maedersv"
]
;
then
if
[
[
"
${
ENVRCD_USER
}
"
==
"rda"
]
]
&&
[
[
"
${
HOSTNAME
}
"
==
"rda"
||
"
${
HOSTNAME
}
"
==
"compi"
]
]
&&
[
[
"
${
USER
}
"
==
"maedersv"
||
"
${
USER
}
"
==
"rda"
]
]
;
then
USERAT
=
""
fi
...
...
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