scripts: docker scripts (#26)

* dogo/doll

dogo supports zsh/bash/sh; doll is introduced to launch a new docker
container; update $SUDO in command.sh

* update ci

* fix regex

* dogo: enhance, support -[0-9]*

* dogo&doll: enhanced

* zshrc: sibd and sob
This commit is contained in:
2022-11-14 01:37:48 +08:00
committed by GitHub
parent 995899f3a3
commit 6e33fc0875
6 changed files with 53 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ THIS_DIR_COMMON_SH=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd )
export DOTFILES=$( cd "$THIS_DIR_COMMON_SH/.." && pwd )
SUDO=''
if (( $EUID != 0 )); then
if [[ "$EUID" != "0" && -x $(command -v sudo) ]]; then
SUDO='sudo'
fi

View File

@@ -13,7 +13,7 @@ set_mirror()
pacman_S()
{
pacman -Syu
pacman -S tmux git zsh curl vim wget base-devel mingw-w64-x86_64-toolchain make cmake gcc zip unzip python3 python3-pip
pacman -S tmux git zsh curl vim wget base-devel mingw-w64-x86_64-toolchain make cmake gcc zip unzip python3 python3-pip man-pages-posix
}
router()

View File

@@ -20,6 +20,7 @@ dfs log 1
z ~
test ~ -ef "$(pwd)"
dogo
doll
dfs cd
tools/common.sh get_os_type
tools/common.sh get_linux_dist