Compare commits

...

3 commits

8 changed files with 46 additions and 8 deletions

View file

@ -35,8 +35,8 @@ fi
WORKSPACE_DIR="${HOME}/spaces/workspace" WORKSPACE_DIR="${HOME}/spaces/workspace"
export WORKSPACE_DIR export WORKSPACE_DIR
alias vi="neovim" alias vi="nvim"
alias vim="neovim" alias vim="nvim"
alias cdw="cd -- ${WORKSPACE_DIR}" alias cdw="cd -- ${WORKSPACE_DIR}"
function cdp() { function cdp() {

View file

@ -0,0 +1,3 @@
#!/bin/bash
COMMAND_DEPS=("fastfetch")

View file

@ -0,0 +1,25 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"source": "opensuse",
"type": "small"
},
"modules": [
"title",
"separator",
"host",
"uptime",
"shell",
"break",
"cpu",
"gpu",
"memory",
"disk",
"break",
"localip",
{
"type": "publicip",
"url": "http://ip.eyedevelop.org"
}
]
}

View file

@ -0,0 +1,3 @@
if status --is-interactive
fastfetch -c ~/.config/fastfetch.json
end

View file

@ -0,0 +1,3 @@
#!/bin/bash
[[ -n "$PS1" ]] && fastfetch -c ~/.config/fastfetch.json

View file

@ -1 +1,4 @@
alias cdw="cd \$WORKSPACE_DIR" alias cdw="cd \$WORKSPACE_DIR"
alias vi="nvim"
alias vim="nvim"

View file

@ -68,7 +68,7 @@ enter_toolbox() {
create_toolbox create_toolbox
fi fi
podman exec -it "${TOOLBX_NAME}" "/autoshell.sh" "${SHELL}" podman exec -it --env=_REAL_USER="${USER}" "${TOOLBX_NAME}" "/autoshell.sh" "${SHELL}"
} }
print_usage() { print_usage() {
@ -80,13 +80,11 @@ print_usage() {
echo " -i|--image -- The image to use to create the toolbox with." echo " -i|--image -- The image to use to create the toolbox with."
echo " -p|--privileged -- Whether the toolbox is privileged or not." echo " -p|--privileged -- Whether the toolbox is privileged or not."
echo " delete -- Delete the current toolbox." echo " delete -- Delete the current toolbox."
echo
echo "If no command is specified, enter is assumed."
} }
if [[ "$#" -lt 1 ]]; then if [[ "$#" -lt 1 ]]; then
print_usage print_usage
return 1 exit 1
fi fi
while [[ "$#" -ge 1 ]]; do while [[ "$#" -ge 1 ]]; do

View file

@ -9,7 +9,7 @@ install_shell() {
case "${ID}" in case "${ID}" in
debian) debian)
apt-get -y update && apt-get -y install "$(apt-file update &>/dev/null && apt-file search -l "${REAL_SHELL}" | head -n1 )" apt-get -y update && apt-get -y install "$(apt-file update &>/dev/null && apt-file search -lF "${REAL_SHELL}" | head -n1 )"
;; ;;
*) *)
@ -26,5 +26,8 @@ start_shell() {
fi fi
} }
install_shell >/dev/null || true if ! command -v "${REAL_SHELL}" &>/dev/null; then
install_shell >/dev/null || true
fi
start_shell "$@" start_shell "$@"