added nushell

This commit is contained in:
2023-11-10 09:28:29 +00:00
parent e260e76e71
commit 3fce862096

9
kfg
View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
NAME="kfg" NAME="kfg"
VERSION="0.13" VERSION="0.14"
HOME_PATH="$HOME" HOME_PATH="$HOME"
TMP_PATH="$HOME_PATH/.tmp/kfg_install" TMP_PATH="$HOME_PATH/.tmp/kfg_install"
@@ -30,6 +30,7 @@ TOOLS[fzf]="A command-line fuzzy finder - https://github.com/junegunn/fzf"
TOOLS[fzf-tab]="Replace zsh's default completion selection menu with fzf - https://github.com/Aloxaf/fzf-tab" TOOLS[fzf-tab]="Replace zsh's default completion selection menu with fzf - https://github.com/Aloxaf/fzf-tab"
TOOLS[zoom]="Conference platform Zoom - https://eu01web.zoom.us/" TOOLS[zoom]="Conference platform Zoom - https://eu01web.zoom.us/"
TOOLS[nvim]="Neovim a modal terminal editor - https://github.com/neovim/neovim/" TOOLS[nvim]="Neovim a modal terminal editor - https://github.com/neovim/neovim/"
TOOLS[nu]="Nushell - a new type of shell that works with data structures - https://github.com/nushell/nushell/"
function show_help_name { function show_help_name {
echo "$NAME v$VERSION" echo "$NAME v$VERSION"
@@ -524,6 +525,7 @@ function p_all {
p_zoxide p_zoxide
p_fzf p_fzf
p_nvim p_nvim
p_nu
} }
function p_zsh { function p_zsh {
@@ -584,6 +586,10 @@ function p_bat {
install_rc_download bat "bat.rc" "https://git.cbeck.tech/kamu/dotfiles/raw/branch/main/.config/bat/bat.rc" install_rc_download bat "bat.rc" "https://git.cbeck.tech/kamu/dotfiles/raw/branch/main/.config/bat/bat.rc"
} }
function p_nu {
github_install nu 'nushell/nushell'
}
function p_lsd { function p_lsd {
# ----------------- # -----------------
# Install lsd https://github.com/Peltoche/lsd # Install lsd https://github.com/Peltoche/lsd
@@ -723,6 +729,7 @@ function install {
fzf) p_fzf; shift ;; fzf) p_fzf; shift ;;
zoom) p_zoom; shift ;; zoom) p_zoom; shift ;;
nvim) p_nvim; shift ;; nvim) p_nvim; shift ;;
nu) p_nu; shift ;;
# If invalid options were passed, then getopt should have reported an error, # If invalid options were passed, then getopt should have reported an error,
# which we checked as VALID_ARGUMENTS when getopt was called... # which we checked as VALID_ARGUMENTS when getopt was called...
*) log_error "Unrecognised program: $1"; shift ;; *) log_error "Unrecognised program: $1"; shift ;;