Compare commits
3 commits
b8cfcf85ee
...
5672a4edcc
| Author | SHA1 | Date | |
|---|---|---|---|
| 5672a4edcc | |||
| dbda6c03d9 | |||
| 7afdee985f |
8 changed files with 46 additions and 8 deletions
|
|
@ -35,8 +35,8 @@ fi
|
|||
WORKSPACE_DIR="${HOME}/spaces/workspace"
|
||||
export WORKSPACE_DIR
|
||||
|
||||
alias vi="neovim"
|
||||
alias vim="neovim"
|
||||
alias vi="nvim"
|
||||
alias vim="nvim"
|
||||
alias cdw="cd -- ${WORKSPACE_DIR}"
|
||||
|
||||
function cdp() {
|
||||
|
|
|
|||
3
stowers/fastfetch/config.sh
Normal file
3
stowers/fastfetch/config.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
COMMAND_DEPS=("fastfetch")
|
||||
25
stowers/fastfetch/dot-config/fastfetch.json
Normal file
25
stowers/fastfetch/dot-config/fastfetch.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
if status --is-interactive
|
||||
fastfetch -c ~/.config/fastfetch.json
|
||||
end
|
||||
3
stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh
Normal file
3
stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
[[ -n "$PS1" ]] && fastfetch -c ~/.config/fastfetch.json
|
||||
|
|
@ -1 +1,4 @@
|
|||
alias cdw="cd \$WORKSPACE_DIR"
|
||||
|
||||
alias vi="nvim"
|
||||
alias vim="nvim"
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ enter_toolbox() {
|
|||
create_toolbox
|
||||
fi
|
||||
|
||||
podman exec -it "${TOOLBX_NAME}" "/autoshell.sh" "${SHELL}"
|
||||
podman exec -it --env=_REAL_USER="${USER}" "${TOOLBX_NAME}" "/autoshell.sh" "${SHELL}"
|
||||
}
|
||||
|
||||
print_usage() {
|
||||
|
|
@ -80,13 +80,11 @@ 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
|
||||
return 1
|
||||
exit 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 -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
|
||||
}
|
||||
|
||||
install_shell >/dev/null || true
|
||||
if ! command -v "${REAL_SHELL}" &>/dev/null; then
|
||||
install_shell >/dev/null || true
|
||||
fi
|
||||
|
||||
start_shell "$@"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue