Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
f0e6ba6b
Unverified
Commit
f0e6ba6b
authored
Aug 20, 2024
by
Paul Taylor
Committed by
GitHub
Aug 20, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure `common-utils` rc snippets end with newlines (#1100)
ensure common-utils rc snippets have line endings
parent
34c3a511
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
devcontainer-feature.json
src/common-utils/devcontainer-feature.json
+1
-1
bash_theme_snippet.sh
src/common-utils/scripts/bash_theme_snippet.sh
+1
-1
devcontainers.zsh-theme
src/common-utils/scripts/devcontainers.zsh-theme
+2
-2
rc_snippet.sh
src/common-utils/scripts/rc_snippet.sh
+2
-2
No files found.
src/common-utils/devcontainer-feature.json
View file @
f0e6ba6b
{
{
"id"
:
"common-utils"
,
"id"
:
"common-utils"
,
"version"
:
"2.5.
0
"
,
"version"
:
"2.5.
1
"
,
"name"
:
"Common Utilities"
,
"name"
:
"Common Utilities"
,
"documentationURL"
:
"https://github.com/devcontainers/features/tree/main/src/common-utils"
,
"documentationURL"
:
"https://github.com/devcontainers/features/tree/main/src/common-utils"
,
"description"
:
"Installs a set of common command line utilities, Oh My Zsh!, and sets up a non-root user."
,
"description"
:
"Installs a set of common command line utilities, Oh My Zsh!, and sets up a non-root user."
,
...
...
src/common-utils/scripts/bash_theme_snippet.sh
View file @
f0e6ba6b
...
@@ -41,4 +41,4 @@ if [[ "$TERM" == "xterm" ]]; then
...
@@ -41,4 +41,4 @@ if [[ "$TERM" == "xterm" ]]; then
# Append to PROMPT_COMMAND to call precmd before displaying the prompt
# Append to PROMPT_COMMAND to call precmd before displaying the prompt
PROMPT_COMMAND
=
"
${
PROMPT_COMMAND
:+
$PROMPT_COMMAND
;
}
precmd"
PROMPT_COMMAND
=
"
${
PROMPT_COMMAND
:+
$PROMPT_COMMAND
;
}
precmd"
fi
fi
\ No newline at end of file
src/common-utils/scripts/devcontainers.zsh-theme
View file @
f0e6ba6b
# Oh My Zsh! theme - partly inspired by https://github.com/ohmyzsh/ohmyzsh/blob/master/themes/robbyrussell.zsh-theme
# Oh My Zsh! theme - partly inspired by https://github.com/ohmyzsh/ohmyzsh/blob/master/themes/robbyrussell.zsh-theme
__zsh_prompt() {
__zsh_prompt() {
local prompt_username
local prompt_username
if [ ! -z "${GITHUB_USER}" ]; then
if [ ! -z "${GITHUB_USER}" ]; then
prompt_username="@${GITHUB_USER}"
prompt_username="@${GITHUB_USER}"
else
else
prompt_username="%n"
prompt_username="%n"
...
@@ -42,4 +42,4 @@ if [[ "$TERM" == "xterm" ]]; then
...
@@ -42,4 +42,4 @@ if [[ "$TERM" == "xterm" ]]; then
autoload -Uz add-zsh-hook
autoload -Uz add-zsh-hook
add-zsh-hook preexec preexec
add-zsh-hook preexec preexec
add-zsh-hook precmd precmd
add-zsh-hook precmd precmd
fi
fi
\ No newline at end of file
src/common-utils/scripts/rc_snippet.sh
View file @
f0e6ba6b
...
@@ -16,9 +16,9 @@ fi
...
@@ -16,9 +16,9 @@ fi
# Set the default git editor if not already set
# Set the default git editor if not already set
if
[
-z
"
$(
git config
--get
core.editor
)
"
]
&&
[
-z
"
${
GIT_EDITOR
}
"
]
;
then
if
[
-z
"
$(
git config
--get
core.editor
)
"
]
&&
[
-z
"
${
GIT_EDITOR
}
"
]
;
then
if
[
"
${
TERM_PROGRAM
}
"
=
"vscode"
]
;
then
if
[
"
${
TERM_PROGRAM
}
"
=
"vscode"
]
;
then
if
[[
-n
$(
command
-v
code-insiders
)
&&
-z
$(
command
-v
code
)
]]
;
then
if
[[
-n
$(
command
-v
code-insiders
)
&&
-z
$(
command
-v
code
)
]]
;
then
export
GIT_EDITOR
=
"code-insiders --wait"
export
GIT_EDITOR
=
"code-insiders --wait"
else
else
export
GIT_EDITOR
=
"code --wait"
export
GIT_EDITOR
=
"code --wait"
fi
fi
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