Compare commits
No commits in common. "5672a4edcc754af75e7d8e97926654f4c63083be" and "b8cfcf85eed94f7c04bac8c1cd862cae0e51dc0f" have entirely different histories.
5672a4edcc
...
b8cfcf85ee
8 changed files with 8 additions and 46 deletions
|
|
@ -35,8 +35,8 @@ fi
|
|||
WORKSPACE_DIR="${HOME}/spaces/workspace"
|
||||
export WORKSPACE_DIR
|
||||
|
||||
alias vi="nvim"
|
||||
alias vim="nvim"
|
||||
alias vi="neovim"
|
||||
alias vim="neovim"
|
||||
alias cdw="cd -- ${WORKSPACE_DIR}"
|
||||
|
||||
function cdp() {
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
COMMAND_DEPS=("fastfetch")
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
"$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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
if status --is-interactive
|
||||
fastfetch -c ~/.config/fastfetch.json
|
||||
end
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
[[ -n "$PS1" ]] && fastfetch -c ~/.config/fastfetch.json
|
||||
|
|
@ -1,4 +1 @@
|
|||
alias cdw="cd \$WORKSPACE_DIR"
|
||||
|
||||
alias vi="nvim"
|
||||
alias vim="nvim"
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ enter_toolbox() {
|
|||
create_toolbox
|
||||
fi
|
||||
|
||||
podman exec -it --env=_REAL_USER="${USER}" "${TOOLBX_NAME}" "/autoshell.sh" "${SHELL}"
|
||||
podman exec -it "${TOOLBX_NAME}" "/autoshell.sh" "${SHELL}"
|
||||
}
|
||||
|
||||
print_usage() {
|
||||
|
|
@ -80,11 +80,13 @@ print_usage() {
|
|||
echo " -i|--image -- The image to use to create the toolbox with."
|
||||
echo " -p|--privileged -- Whether the toolbox is privileged or not."
|
||||
echo " delete -- Delete the current toolbox."
|
||||
echo
|
||||
echo "If no command is specified, enter is assumed."
|
||||
}
|
||||
|
||||
if [[ "$#" -lt 1 ]]; then
|
||||
print_usage
|
||||
exit 1
|
||||
return 1
|
||||
fi
|
||||
|
||||
while [[ "$#" -ge 1 ]]; do
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ install_shell() {
|
|||
|
||||
case "${ID}" in
|
||||
debian)
|
||||
apt-get -y update && apt-get -y install "$(apt-file update &>/dev/null && apt-file search -lF "${REAL_SHELL}" | head -n1 )"
|
||||
apt-get -y update && apt-get -y install "$(apt-file update &>/dev/null && apt-file search -l "${REAL_SHELL}" | head -n1 )"
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
@ -26,8 +26,5 @@ start_shell() {
|
|||
fi
|
||||
}
|
||||
|
||||
if ! command -v "${REAL_SHELL}" &>/dev/null; then
|
||||
install_shell >/dev/null || true
|
||||
fi
|
||||
|
||||
install_shell >/dev/null || true
|
||||
start_shell "$@"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue