added everythig
This commit is contained in:
186
nushell/.config/nushell/config.nu
Normal file
186
nushell/.config/nushell/config.nu
Normal file
@@ -0,0 +1,186 @@
|
||||
# config.nu
|
||||
#
|
||||
# Installed by:
|
||||
# version = "0.103.0"
|
||||
#
|
||||
# This file is used to override default Nushell settings, define
|
||||
# (or import) custom commands, or run any other startup tasks.
|
||||
# See https://www.nushell.sh/book/configuration.html
|
||||
#
|
||||
# This file is loaded after env.nu and before login.nu
|
||||
#
|
||||
# You can open this file in your default editor using:
|
||||
# config nu
|
||||
#
|
||||
# See `help config nu` for more options
|
||||
#
|
||||
# You can remove these comments if you want or leave
|
||||
# them for future reference.
|
||||
|
||||
# https://github.com/nushell/nu_scripts/tree/main/themes
|
||||
let dark_theme = {
|
||||
# color for nushell primitives
|
||||
separator: white
|
||||
leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off
|
||||
header: green_bold
|
||||
empty: blue
|
||||
# Closures can be used to choose colors for specific values.
|
||||
# The value (in this case, a bool) is piped into the closure.
|
||||
# eg) {|| if $in { 'light_cyan' } else { 'light_gray' } }
|
||||
bool: light_cyan
|
||||
int: white
|
||||
filesize: cyan
|
||||
duration: white
|
||||
date: purple
|
||||
range: white
|
||||
float: white
|
||||
string: white
|
||||
nothing: white
|
||||
binary: white
|
||||
cell-path: white
|
||||
row_index: green_bold
|
||||
record: white
|
||||
list: white
|
||||
block: white
|
||||
hints: dark_gray
|
||||
search_result: { bg: red fg: white }
|
||||
shape_and: purple_bold
|
||||
shape_binary: purple_bold
|
||||
shape_block: blue_bold
|
||||
shape_bool: light_cyan
|
||||
shape_closure: green_bold
|
||||
shape_custom: green
|
||||
shape_datetime: cyan_bold
|
||||
shape_directory: cyan
|
||||
shape_external: cyan
|
||||
shape_externalarg: green_bold
|
||||
shape_external_resolved: light_yellow_bold
|
||||
shape_filepath: cyan
|
||||
shape_flag: blue_bold
|
||||
shape_float: purple_bold
|
||||
# shapes are used to change the cli syntax highlighting
|
||||
shape_garbage: { fg: white bg: red attr: b}
|
||||
shape_glob_interpolation: cyan_bold
|
||||
shape_globpattern: cyan_bold
|
||||
shape_int: purple_bold
|
||||
shape_internalcall: cyan_bold
|
||||
shape_keyword: cyan_bold
|
||||
shape_list: cyan_bold
|
||||
shape_literal: blue
|
||||
shape_match_pattern: green
|
||||
shape_matching_brackets: { attr: u }
|
||||
shape_nothing: light_cyan
|
||||
shape_operator: yellow
|
||||
shape_or: purple_bold
|
||||
shape_pipe: purple_bold
|
||||
shape_range: yellow_bold
|
||||
shape_record: cyan_bold
|
||||
shape_redirection: purple_bold
|
||||
shape_signature: green_bold
|
||||
shape_string: green
|
||||
shape_string_interpolation: cyan_bold
|
||||
shape_table: blue_bold
|
||||
shape_variable: purple
|
||||
shape_vardecl: purple
|
||||
shape_raw_string: light_purple
|
||||
}
|
||||
|
||||
let light_theme = {
|
||||
# color for nushell primitives
|
||||
separator: dark_gray
|
||||
leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off
|
||||
header: green_bold
|
||||
empty: blue
|
||||
# Closures can be used to choose colors for specific values.
|
||||
# The value (in this case, a bool) is piped into the closure.
|
||||
# eg) {|| if $in { 'dark_cyan' } else { 'dark_gray' } }
|
||||
bool: dark_cyan
|
||||
int: dark_gray
|
||||
filesize: cyan_bold
|
||||
duration: dark_gray
|
||||
date: purple
|
||||
range: dark_gray
|
||||
float: dark_gray
|
||||
string: dark_gray
|
||||
nothing: dark_gray
|
||||
binary: dark_gray
|
||||
cell-path: dark_gray
|
||||
row_index: green_bold
|
||||
record: dark_gray
|
||||
list: dark_gray
|
||||
block: dark_gray
|
||||
hints: dark_gray
|
||||
search_result: { fg: white bg: red }
|
||||
shape_and: purple_bold
|
||||
shape_binary: purple_bold
|
||||
shape_block: blue_bold
|
||||
shape_bool: light_cyan
|
||||
shape_closure: green_bold
|
||||
shape_custom: green
|
||||
shape_datetime: cyan_bold
|
||||
shape_directory: cyan
|
||||
shape_external: cyan
|
||||
shape_externalarg: green_bold
|
||||
shape_external_resolved: light_purple_bold
|
||||
shape_filepath: cyan
|
||||
shape_flag: blue_bold
|
||||
shape_float: purple_bold
|
||||
# shapes are used to change the cli syntax highlighting
|
||||
shape_garbage: { fg: white bg: red attr: b}
|
||||
shape_globpattern: cyan_bold
|
||||
shape_int: purple_bold
|
||||
shape_internalcall: cyan_bold
|
||||
shape_keyword: cyan_bold
|
||||
shape_list: cyan_bold
|
||||
shape_literal: blue
|
||||
shape_match_pattern: green
|
||||
shape_matching_brackets: { attr: u }
|
||||
shape_nothing: light_cyan
|
||||
shape_operator: yellow
|
||||
shape_or: purple_bold
|
||||
shape_pipe: purple_bold
|
||||
shape_range: yellow_bold
|
||||
shape_record: cyan_bold
|
||||
shape_redirection: purple_bold
|
||||
shape_signature: green_bold
|
||||
shape_string: green
|
||||
shape_string_interpolation: cyan_bold
|
||||
shape_table: blue_bold
|
||||
shape_variable: purple
|
||||
shape_vardecl: purple
|
||||
shape_raw_string: light_purple
|
||||
}
|
||||
|
||||
# Example prompt with Nerd Font icons
|
||||
def create_left_prompt [] {
|
||||
let dir = ([
|
||||
(char -u "e0b1"),
|
||||
($env.PWD | str replace $nu.home-path "~")
|
||||
] | str join)
|
||||
|
||||
let git_branch = (do -i { git rev-parse --abbrev-ref HEAD } | default "")
|
||||
|
||||
$"(ansi green)($dir)(ansi reset) (ansi purple) ($git_branch)(ansi reset)"
|
||||
}
|
||||
|
||||
$env.PROMPT_COMMAND = { create_left_prompt }
|
||||
|
||||
$env.GIT_DISCOVERY_ACROSS_FILESYSTEM = "1" # Allows Git to check parent dirs
|
||||
|
||||
def --wrapped git [...args] {
|
||||
^git ...$args err> /dev/null
|
||||
}
|
||||
|
||||
## Alias
|
||||
source ~/.alias.nu
|
||||
|
||||
### autocompletion
|
||||
## zoxide
|
||||
#$env.ZOXIDE_HOOK = true
|
||||
|
||||
#$env.config.completions.quick = true # Show completions immediately
|
||||
#$env.config.completions.partial = true # Complete on partial matches
|
||||
#$env.config.completions.case_sensitive = false
|
||||
|
||||
#~/.config/nushell/config.nu
|
||||
source ~/.cache/carapace/init.nu
|
||||
29
nushell/.config/nushell/env.nu
Normal file
29
nushell/.config/nushell/env.nu
Normal file
@@ -0,0 +1,29 @@
|
||||
# env.nu
|
||||
#
|
||||
# Installed by:
|
||||
# version = "0.103.0"
|
||||
#
|
||||
# Previously, environment variables were typically configured in `env.nu`.
|
||||
# In general, most configuration can and should be performed in `config.nu`
|
||||
# or one of the autoload directories.
|
||||
#
|
||||
# This file is generated for backwards compatibility for now.
|
||||
# It is loaded before config.nu and login.nu
|
||||
#
|
||||
# See https://www.nushell.sh/book/configuration.html
|
||||
#
|
||||
# Also see `help config env` for more options.
|
||||
#
|
||||
# You can remove these comments if you want or leave
|
||||
# them for future reference.
|
||||
|
||||
$env.GIT_DISCOVERY_ACROSS_FILESYSTEM = "1" # Allows Git to check parent dire
|
||||
|
||||
# Add after the last line
|
||||
# https://carapace-sh.github.io/carapace-bin/setup.html#nushell
|
||||
|
||||
$env.FZF_DEFAULT_OPTS = "--ansi --preview-window 'right:60%' --preview 'bat --color=always --style=header,grid --line-range :300 {}'"
|
||||
|
||||
mkdir ~/.cache/carapace
|
||||
carapace _carapace nushell | save --force ~/.cache/carapace/init.nu
|
||||
|
||||
363
nushell/.config/nushell/history.txt
Normal file
363
nushell/.config/nushell/history.txt
Normal file
@@ -0,0 +1,363 @@
|
||||
y
|
||||
yazi
|
||||
y
|
||||
yazi
|
||||
exit
|
||||
y
|
||||
yazi
|
||||
tn
|
||||
y
|
||||
yazi
|
||||
lt
|
||||
ltree
|
||||
ls
|
||||
cld
|
||||
exit
|
||||
ffcbmp
|
||||
y
|
||||
exit
|
||||
nu
|
||||
exit
|
||||
nu
|
||||
ls
|
||||
ltree
|
||||
ripp
|
||||
ripp 'radiohead'
|
||||
ffcbmp
|
||||
ffcmp
|
||||
y
|
||||
ltree
|
||||
y
|
||||
cl
|
||||
exit
|
||||
nu
|
||||
exit
|
||||
nu
|
||||
y
|
||||
$env.config.buffer_editor = <neovim>
|
||||
$env.config.buffer_editor = <nvim>
|
||||
$env.config.buffer_editor = neovim
|
||||
$env.config.buffer_editor = nvim
|
||||
$env.config.buffer_editor = "neovim"
|
||||
config nu --doc | nu-highlight | less -R
|
||||
vpnr
|
||||
nmst
|
||||
nmwi
|
||||
vpnr
|
||||
ys starship
|
||||
starship
|
||||
starship config
|
||||
mkdir -p ~/.config/starship && touch ~/.config/starship/starship.toml
|
||||
mkdir -p ~/.config/starship ; touch ~/.config/starship/starship.toml
|
||||
mkdir ~/.config/starship ; touch ~/.config/starship/starship.toml
|
||||
y
|
||||
which starhip
|
||||
starship --version
|
||||
y
|
||||
exit
|
||||
$nu.config-path
|
||||
ys nushell-bin-0.96.0
|
||||
ys nushell-bin-0.96
|
||||
exit
|
||||
cd dotfiles
|
||||
y
|
||||
cd dotfiles
|
||||
exit
|
||||
cd dotfiles
|
||||
cd
|
||||
exit
|
||||
cd dotfiles
|
||||
starship config
|
||||
y
|
||||
which starhip
|
||||
where starhip.conf
|
||||
where starhip.toml
|
||||
starship config
|
||||
q
|
||||
cd
|
||||
cd podman
|
||||
cd arr_stack/config/lidarr/
|
||||
cd arr_stack/
|
||||
cd ..
|
||||
cd essentials_stack/data/movies/
|
||||
cd
|
||||
cd programming/
|
||||
cd
|
||||
cd podman/
|
||||
cd dot
|
||||
cd
|
||||
cd dotfiles/
|
||||
cd nvim/.config/nvim/lua/plugins/catppuccin.lua
|
||||
cd nvim/.config/nvim/lua/plugins
|
||||
exit
|
||||
y
|
||||
cd dotfiles/
|
||||
cd programming/
|
||||
cd
|
||||
cd programming/
|
||||
sudo pacman -S ttf-nerd-fonts-symbols
|
||||
exit
|
||||
cd programming/
|
||||
starship config
|
||||
cd
|
||||
ys ttf-firecode-nerd
|
||||
ys ttf-firacode
|
||||
y
|
||||
cd programming/
|
||||
y
|
||||
cd programming/
|
||||
y
|
||||
exit
|
||||
cd programming/
|
||||
config reset
|
||||
exit
|
||||
cd programming/
|
||||
starship preset nerd-font-symbols -o ~/.config/starship.toml
|
||||
starship config
|
||||
exit
|
||||
cd programming/
|
||||
exit
|
||||
cd programming/
|
||||
exi
|
||||
exit
|
||||
cd programming/
|
||||
y
|
||||
exit
|
||||
cd programming/
|
||||
starship config
|
||||
cd
|
||||
cd dotfiles/nvim/.config/nvim/lua/plugins/
|
||||
cd
|
||||
cd podman
|
||||
cd arr_stack/
|
||||
cd config/radarr/
|
||||
cd config/
|
||||
cd config
|
||||
cd ..
|
||||
cd
|
||||
cd dotfiles/
|
||||
cd ~/.config/lazygit/
|
||||
cd
|
||||
cd Downloads/lebara.pdf
|
||||
starship config
|
||||
exit
|
||||
cd dotfiles/
|
||||
exit
|
||||
cd dotfiles/
|
||||
exit
|
||||
cd dotfiles/
|
||||
exit
|
||||
cd dotfiles/
|
||||
cd
|
||||
cd dotfiles/
|
||||
exit
|
||||
test
|
||||
cd dotfiles
|
||||
cd Downloads/lebara.pdf
|
||||
cd Downloads
|
||||
cd
|
||||
cd Downloads/
|
||||
cd
|
||||
cd programming/
|
||||
y
|
||||
cd dotfiles
|
||||
cd
|
||||
cd programming/
|
||||
ys carapace-bin
|
||||
y
|
||||
which carapace
|
||||
cd scripts
|
||||
fzf
|
||||
ys carapace-bin
|
||||
starship config
|
||||
rebo
|
||||
reboot
|
||||
cd programming/
|
||||
cd
|
||||
y
|
||||
yazi
|
||||
exit
|
||||
nu
|
||||
exit
|
||||
cd
|
||||
ys protonmail
|
||||
y
|
||||
let carapace_completer = {|spans|<\n> carapace $spans.0 nushell ...$spans | from json<\n>}
|
||||
let fish_completer = {|spans|<\n> fish --command $'complete "--do-complete=($spans | str join " ")"'<\n> | from tsv --flexible --noheaders --no-infer<\n> | rename value description<\n> | update value {<\n> if ($in | path exists) {$'"($in | str replace "\"" "\\\"" )"'} else {$in}<\n> }<\n>}
|
||||
fzf
|
||||
exit
|
||||
ls | get name | str join "\n" | fzf
|
||||
$env.config.completions.algorithm = "Fuzzy"
|
||||
cd StreamripDownloads/
|
||||
cd
|
||||
# I found the code below here: https://discord.com/channels/601130461678272522/615253963645911060/1209827461496569876<\n>$env.config.keybindings ++= [<\n> {<\n> name: fzf_files<\n> modifier: control<\n> keycode: char_t<\n> mode: [emacs, vi_normal, vi_insert]<\n> event: [<\n> {<\n> send: executehostcommand<\n> cmd: "<\n> let fzf_ctrl_t_command = \"fd --type=file | fzf --preview 'bat --color=always --style=full --line-range=:500 {}'\";<\n> let result = nu -c $fzf_ctrl_t_command;<\n> commandline edit --append $result;<\n> commandline set-cursor --end<\n> "<\n> }<\n> ]<\n> }<\n>]
|
||||
let $config_path = $env.XDG_CONFIG_HOME? | default '~/.config' | path join broot select.toml<\n>mkdir ($config_path | path dirname) <\n><\n>{<\n> verbs: [<\n> [invocation, key, leave_broot, execution, apply_to];<\n> [ok, enter, true, ":print_path", file ],<\n> [ok, alt-enter, true, ":print_path", any ]<\n> ]<\n>} | save -f $config_path
|
||||
exit
|
||||
ls | get name | str join "\n" | fzf
|
||||
ls
|
||||
exit
|
||||
nu
|
||||
cld
|
||||
y
|
||||
cld
|
||||
cd pod
|
||||
exit
|
||||
ls | get name | str join "\n" | fzf
|
||||
ls Downloads/
|
||||
exit
|
||||
ls podman/
|
||||
ls podman/arr_stack/
|
||||
lt podman/essentials_stack/
|
||||
ls podman/essentials_stack/
|
||||
ls podman/essentials_stack/data/tv/
|
||||
ls `podman/essentials_stack/data/tv/The Last of Us/`
|
||||
exit
|
||||
ls podman/essentials_stack/
|
||||
exit
|
||||
ls Downloads/
|
||||
source ~/.config/nushell/config.nu
|
||||
nvim ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
cld
|
||||
exit
|
||||
eit
|
||||
exit
|
||||
exir
|
||||
exit
|
||||
cd programming/
|
||||
cld
|
||||
cd
|
||||
cd podman/
|
||||
cl
|
||||
cd
|
||||
cl
|
||||
$env.GIT_DISCOVERY_ACROSS_FILESYSTEM = "1" # Allows Git to check parent dirs
|
||||
$env.GIT_DISCOVERY_ACROSS_FILESYSTEM = "1"
|
||||
cl
|
||||
cd
|
||||
nvim ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
nvim ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
exit
|
||||
nvim ~/.config/nushell/config.nu
|
||||
git init
|
||||
exit
|
||||
source ~/.config/nushell/config.nu
|
||||
exit
|
||||
source ~/.config/nushell/config.nu
|
||||
exit
|
||||
source ~/.config/nushell/config.nu
|
||||
do -i { git status } | ignore
|
||||
exit
|
||||
git status 2> /dev/null
|
||||
exit
|
||||
nvim ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
exit
|
||||
ls Downloads/
|
||||
cl
|
||||
clear
|
||||
exit
|
||||
source ~/.config/nushell/config.nu
|
||||
ls
|
||||
clear
|
||||
nvim ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
nvim ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
nvim ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
exit
|
||||
source ~/.config/nushell/config.nu
|
||||
exir
|
||||
exit
|
||||
source ~/.config/nushell/config.nu
|
||||
exit
|
||||
nvim ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
carapace _carapace nushell
|
||||
nvim ~/.config/nushell/env.nu
|
||||
nvim ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
exit
|
||||
nvim ~/.config/nushell/env.nu
|
||||
exit
|
||||
carapace --run nu
|
||||
--packages nushell carapace --run nu
|
||||
bash --packages nushell carapace --run nu
|
||||
exit
|
||||
cd dotfiles
|
||||
nvim ~/.config/nushell/env.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/env.nu
|
||||
exit
|
||||
carapace paru
|
||||
carapace --init
|
||||
carapace --help
|
||||
carapace --run
|
||||
carapace --run --help
|
||||
carapace --run -h
|
||||
carapace --run paru
|
||||
carapace -h
|
||||
carapace chmod nushell
|
||||
carapace -h
|
||||
carapace --run nushell
|
||||
carapace nushell
|
||||
carpace -h
|
||||
carapace -h
|
||||
carapace _carapace nushell
|
||||
cd podman/monitoring_stack/data/influxdb
|
||||
cd podman/monitoring_stack/data/influxdb/
|
||||
carapace --makros
|
||||
carapace --macro
|
||||
cd dotfiles/
|
||||
git status --
|
||||
cd
|
||||
nvim ~/.config/nushell/env.nu
|
||||
bat ~/.config/nushell/env.nu
|
||||
nvim ~/.config/nushell/env.nu
|
||||
nvim ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/env.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
exit
|
||||
cld
|
||||
exit
|
||||
ls programming/
|
||||
ls programming/Algo/
|
||||
lt podman/essentials_stack/
|
||||
ls Downloads/
|
||||
exit
|
||||
ls Downloads/
|
||||
nvim ~/.config/nushell/config.nu
|
||||
source ~/.config/nushell/config.nu
|
||||
ls Downloads/
|
||||
exit
|
||||
ls Downloads/
|
||||
lt podman/essentials_stack/
|
||||
exit
|
||||
cld
|
||||
source ~/.config/nushell/config.nu
|
||||
exit
|
||||
test
|
||||
cld
|
||||
exit
|
||||
ys
|
||||
cld
|
||||
duaa
|
||||
dfh
|
||||
duf
|
||||
cld
|
||||
exit
|
||||
ls ~/.config/hypr/
|
||||
ls ~/.config/hypr/hypridle.conf
|
||||
bat ~/.config/hypr/hypridle.conf
|
||||
cat ~/.config/hypr/hypridle.conf
|
||||
exit
|
||||
fzf
|
||||
source ~/.config/nushell/env.nu
|
||||
fzf
|
||||
cld
|
||||
exit
|
||||
bat ~/.ssh/id_ed25519.pub
|
||||
exit
|
||||
Reference in New Issue
Block a user