Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed Oct 2, 2023
1 parent ac189e4 commit e5fd242
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/alpine-bat/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alpine-bat",
"id": "alpine-bat",
"version": "0.0.3",
"version": "0.0.4",
"description": "Installs bat on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-bat"
}
4 changes: 3 additions & 1 deletion src/alpine-bat/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ echo "Activating feature 'alpine-bat'"

apk --no-cache add bat

su $_CONTAINER_USER
CURRENT_USER=$(awk -v val=1000 -F ":" '$3==val{print $1}' /etc/passwd)
echo "Acting as $CURRENT_USER"
su $CURRENT_USER

echo "alias cat='bat'" >> ~/.profile

Expand Down
2 changes: 1 addition & 1 deletion src/alpine-n98-magerun/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alpine-n98-magerun",
"id": "alpine-n98-magerun",
"version": "0.0.4",
"version": "0.0.5",
"description": "Installs n98-magerun on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-n98-magerun",
"options": {
Expand Down
4 changes: 3 additions & 1 deletion src/alpine-n98-magerun/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ wget -q https://files.magerun.net/n98-magerun2-${VERSION}.phar -O /usr/local/bin
chmod +x /usr/local/bin/n98-magerun2.phar

if [[ $INITZSH == "true" ]]; then
su $_CONTAINER_USER
CURRENT_USER=$(awk -v val=1000 -F ":" '$3==val{print $1}' /etc/passwd)
echo "Acting as $CURRENT_USER"
su $CURRENT_USER

# ZSH PLUGIN
mkdir -p ~/.oh-my-zsh/custom/plugins/n98-magerun2/
Expand Down
2 changes: 1 addition & 1 deletion src/alpine-navi/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alpine-navi",
"id": "alpine-navi",
"version": "0.0.3",
"version": "0.0.4",
"description": "Installs navi on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-navi",
"options": {
Expand Down
4 changes: 3 additions & 1 deletion src/alpine-navi/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ apk --no-cache add skim
apk --no-cache add navi --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing

if [[ $INITZSH == "true" ]]; then
su $_CONTAINER_USER
CURRENT_USER=$(awk -v val=1000 -F ":" '$3==val{print $1}' /etc/passwd)
echo "Acting as $CURRENT_USER"
su $CURRENT_USER

echo $'\neval "$(navi widget zsh)"' >> ~/.zshrc
fi
Expand Down
2 changes: 1 addition & 1 deletion src/alpine-nushell/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alpine-nushell",
"id": "alpine-nushell",
"version": "0.0.4",
"version": "0.0.5",
"description": "Installs nushell on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-nushell",
"options": {
Expand Down
4 changes: 3 additions & 1 deletion src/alpine-nushell/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ echo "Activating feature 'alpine-nushell'"

apk --no-cache add nushell --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing

su $_CONTAINER_USER
CURRENT_USER=$(awk -v val=1000 -F ":" '$3==val{print $1}' /etc/passwd)
echo "Acting as $CURRENT_USER"
su $CURRENT_USER

mkdir -p ~/.config/nushell/
wget -q https://raw.githubusercontent.com/nushell/nushell/main/crates/nu-utils/src/sample_config/default_config.nu -O ~/.config/nushell/config.nu
Expand Down
2 changes: 1 addition & 1 deletion src/alpine-ohmyzsh/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alpine-ohmyzsh",
"id": "alpine-ohmyzsh",
"version": "0.0.4",
"version": "0.0.5",
"description": "Installs ohmyzsh on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-ohmyzsh",
"options": {
Expand Down
4 changes: 3 additions & 1 deletion src/alpine-ohmyzsh/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ echo "Activating feature 'alpine-ohmyzsh'"

apk --no-cache add git curl zsh

su $_CONTAINER_USER
CURRENT_USER=$(awk -v val=1000 -F ":" '$3==val{print $1}' /etc/passwd)
echo "Acting as $CURRENT_USER"
su $CURRENT_USER

curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh -s

Expand Down

0 comments on commit e5fd242

Please sign in to comment.