mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 21:03:00 -05:00
[dev] Add devcontainers and vscode config templates
This commit is contained in:
committed by
Alain Nussbaumer
parent
9fbd07a75d
commit
2fe6969f72
20
.dev/devcontainer/.scripts/init-devcontainer-cli.sh
Executable file
20
.dev/devcontainer/.scripts/init-devcontainer-cli.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# cd aliases
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
alias -- -='cd -'
|
||||
|
||||
# bat aliases
|
||||
alias bat='batcat'
|
||||
|
||||
if [ "$ENABLE_ESA" = "1" ]; then
|
||||
if [ "$(command -v eza)" ]; then
|
||||
alias l='eza -la --icons=auto --group-directories-first'
|
||||
alias la='eza -la --icons=auto --group-directories-first'
|
||||
alias ll='eza -l --icons=auto --group-directories-first'
|
||||
alias l.='eza -d .*'
|
||||
alias ls='eza'
|
||||
alias l1='eza -1'
|
||||
fi
|
||||
fi
|
||||
30
.dev/devcontainer/.scripts/install-devcontainer-tools.sh
Executable file
30
.dev/devcontainer/.scripts/install-devcontainer-tools.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Install mkdocs with mkdocs-material theme
|
||||
pipx install --include-deps mkdocs-material
|
||||
pipx inject mkdocs-material mkdocs-minify-plugin
|
||||
|
||||
# Starfish (https://starship.rs/) - shell prompt
|
||||
if [ "$ENABLE_STARSHIP" = "1" ]
|
||||
then
|
||||
curl -sS https://starship.rs/install.sh | sh -s -- -y
|
||||
echo 'eval "$(starship init bash)"' >> ~/.bashrc
|
||||
fi
|
||||
|
||||
# Atuin (https://atuin.sh/) - shell history
|
||||
if [ "$ENABLE_ATUIN" = "1" ]
|
||||
then
|
||||
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
|
||||
curl https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh -o ~/.bash-preexec.sh
|
||||
fi
|
||||
|
||||
# zoxide (https://github.com/ajeetdsouza/zoxide) - replacement for cd
|
||||
if [ "$ENABLE_ZOXIDE" = "1" ]
|
||||
then
|
||||
curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh
|
||||
echo 'eval "$(zoxide init bash)"' >> ~/.bashrc
|
||||
fi
|
||||
|
||||
pipx install harlequin
|
||||
pipx install toolong
|
||||
pipx install posting
|
||||
Reference in New Issue
Block a user