changes on fish prompt, xplr as file manager on terminal, spicetify plugins

This commit is contained in:
Sergio Laín 2023-07-18 17:12:27 +02:00
parent 4661ad04b5
commit 1a2312f79f
84 changed files with 5407 additions and 2213 deletions

View file

@ -2,16 +2,16 @@
"settings": {
"tabs": [
{
"name": "#arte-picasso",
"url": "/channels/674984102860161025/1007802241035538452",
"name": "#general",
"url": "/channels/674984102860161025/674985827121758208",
"selected": true,
"currentStatus": "none",
"iconUrl": "https://cdn.discordapp.com/icons/674984102860161025/a4c5c84a118b923dfe68dccd886d1d87.webp?size=40",
"channelId": "1007802241035538452"
"channelId": "674985827121758208"
},
{
"name": "#feedback-and-suggestions",
"url": "/channels/959006368784850994/1027703875291062373/threads/1027810621359656970",
"url": "/channels/959006368784850994/1027703875291062373",
"selected": false,
"currentStatus": "none",
"iconUrl": "https://cdn.discordapp.com/icons/959006368784850994/ffd2d5ef008ed1d63fb3145840b1a6db.webp?size=40",
@ -26,12 +26,11 @@
"channelId": "635625917623828520"
},
{
"name": "@Sergio Laín",
"url": "/channels/@me/1107960185529581679",
"name": "Friends",
"url": "/channels/@me",
"selected": false,
"currentStatus": "offline",
"iconUrl": "https://cdn.discordapp.com/avatars/1087642197685452850/b61c2b287c9f9e3e31a5a9741884a33d.webp?size=40",
"channelId": "1107960185529581679"
"currentStatus": "none",
"iconUrl": "https://cdn.discordapp.com/embed/avatars/0.png"
}
],
"favs": [],

View file

@ -48,12 +48,23 @@
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/kitty",
"path": "/home/matt/.config/kitty",
"external": "file:///home/matt/.config/nvim",
"path": "/home/matt/.config/nvim",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/kitty"
"label": "~/.config/nvim"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/nvim/lua",
"path": "/home/matt/.config/nvim/lua",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/nvim/lua"
},
{
"id": "openRecentFolder",
@ -66,6 +77,61 @@
"enabled": true,
"label": "~/.config"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/eDEX-UI/themes",
"path": "/home/matt/.config/eDEX-UI/themes",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/eDEX-UI/themes"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/fish",
"path": "/home/matt/.config/fish",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/fish"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///docs/Musica",
"path": "/docs/Musica",
"scheme": "file"
},
"enabled": true,
"label": "/docs/Musica"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///docs/Documentos/Repos",
"path": "/docs/Documentos/Repos",
"scheme": "file"
},
"enabled": true,
"label": "/docs/Documentos/Repos"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/kitty",
"path": "/home/matt/.config/kitty",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/kitty"
},
{
"id": "openRecentFolder",
"uri": {
@ -88,72 +154,6 @@
"enabled": true,
"label": "~/.oh-my-zsh/themes"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/lazygit",
"path": "/home/matt/.config/lazygit",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/lazygit"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.librewolf/jj4t427t.default-release/chrome",
"path": "/home/matt/.librewolf/jj4t427t.default-release/chrome",
"scheme": "file"
},
"enabled": true,
"label": "~/.librewolf/jj4t427t.default-release/chrome"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///usr/share/sddm/themes/sugar-candy",
"path": "/usr/share/sddm/themes/sugar-candy",
"scheme": "file"
},
"enabled": true,
"label": "/usr/share/sddm/themes/sugar-candy"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///home/matt/Repos/Personal/StartPage",
"path": "/home/matt/Repos/Personal/StartPage",
"scheme": "file"
},
"enabled": true,
"label": "~/Repos/Personal/StartPage"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/BetterDiscord/plugins",
"path": "/home/matt/.config/BetterDiscord/plugins",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/BetterDiscord/plugins"
},
{
"id": "openRecentFolder",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/pipewire",
"path": "/home/matt/.config/pipewire",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/pipewire"
},
{
"id": "vscode.menubar.separator"
},
@ -161,12 +161,12 @@
"id": "openRecentFile",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/fish/functions/fish_prompt.fish",
"path": "/home/matt/.config/fish/functions/fish_prompt.fish",
"external": "file:///home/matt/.config/eDEX-UI/settings.json",
"path": "/home/matt/.config/eDEX-UI/settings.json",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/fish/functions/fish_prompt.fish"
"label": "~/.config/eDEX-UI/settings.json"
},
{
"id": "openRecentFile",
@ -179,6 +179,50 @@
"enabled": true,
"label": "~/.zshrc"
},
{
"id": "openRecentFile",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/starship.toml",
"path": "/home/matt/.config/starship.toml",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/starship.toml"
},
{
"id": "openRecentFile",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/fish/aliases.fish",
"path": "/home/matt/.config/fish/aliases.fish",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/fish/aliases.fish"
},
{
"id": "openRecentFile",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/xplr/init.lua",
"path": "/home/matt/.config/xplr/init.lua",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/xplr/init.lua"
},
{
"id": "openRecentFile",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/fish/config.fish",
"path": "/home/matt/.config/fish/config.fish",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/fish/config.fish"
},
{
"id": "openRecentFile",
"uri": {
@ -223,50 +267,6 @@
"enabled": true,
"label": "~/Descargas/Documentos/Personal/svr27-i448u.csv"
},
{
"id": "openRecentFile",
"uri": {
"$mid": 1,
"external": "file:///home/matt/Descargas/Documentos/Personal/contacts.csv",
"path": "/home/matt/Descargas/Documentos/Personal/contacts.csv",
"scheme": "file"
},
"enabled": true,
"label": "~/Descargas/Documentos/Personal/contacts.csv"
},
{
"id": "openRecentFile",
"uri": {
"$mid": 1,
"external": "file:///home/matt/Descargas/Documentos/Personal/contacts.vcf",
"path": "/home/matt/Descargas/Documentos/Personal/contacts.vcf",
"scheme": "file"
},
"enabled": true,
"label": "~/Descargas/Documentos/Personal/contacts.vcf"
},
{
"id": "openRecentFile",
"uri": {
"$mid": 1,
"external": "file:///home/matt/.config/kitty/kitty.conf",
"path": "/home/matt/.config/kitty/kitty.conf",
"scheme": "file"
},
"enabled": true,
"label": "~/.config/kitty/kitty.conf"
},
{
"id": "openRecentFile",
"uri": {
"$mid": 1,
"external": "file:///docs/Documentos/Repos/Non-Personal/Community%20Dotfiles/.zshrc",
"path": "/docs/Documentos/Repos/Non-Personal/Community Dotfiles/.zshrc",
"scheme": "file"
},
"enabled": true,
"label": "/docs/Documentos/Repos/Non-Personal/Community Dotfiles/.zshrc"
},
{
"id": "vscode.menubar.separator"
},
@ -312,8 +312,7 @@
},
{
"id": "saveAll",
"label": "Save A&&ll",
"enabled": false
"label": "Save A&&ll"
},
{
"id": "vscode.menubar.separator"
@ -325,7 +324,7 @@
"items": [
{
"id": "workbench.profiles.actions.exportProfile",
"label": "Export Profile (Default)..."
"label": "Export Profile (Lua)..."
},
{
"id": "workbench.profiles.actions.importProfile",
@ -348,7 +347,7 @@
"items": [
{
"id": "submenuitem.Profiles",
"label": "Profiles (Default)",
"label": "Profiles (Lua)",
"submenu": {
"items": [
{
@ -365,8 +364,7 @@
},
{
"id": "workbench.profiles.actions.profileEntry.__default__profile__",
"label": "Default",
"checked": true
"label": "Default"
},
{
"id": "workbench.profiles.actions.profileEntry.-7191cca2",
@ -378,7 +376,8 @@
},
{
"id": "workbench.profiles.actions.profileEntry.-1645caa6",
"label": "Lua"
"label": "Lua",
"checked": true
},
{
"id": "workbench.profiles.actions.profileEntry.-1f364037",
@ -395,6 +394,10 @@
{
"id": "vscode.menubar.separator"
},
{
"id": "workbench.profiles.actions.renameCurrentProfile",
"label": "Rename..."
},
{
"id": "workbench.profiles.actions.showProfileContents",
"label": "Show Contents..."
@ -666,13 +669,11 @@
},
{
"id": "workbench.action.toggleZenMode",
"label": "Zen Mode",
"checked": true
"label": "Zen Mode"
},
{
"id": "workbench.action.toggleCenteredLayout",
"label": "&&Centered Layout",
"checked": true
"label": "&&Centered Layout"
},
{
"id": "vscode.menubar.separator"
@ -683,7 +684,8 @@
},
{
"id": "workbench.action.toggleSidebarVisibility",
"label": "&&Primary Side Bar"
"label": "&&Primary Side Bar",
"checked": true
},
{
"id": "workbench.action.toggleAuxiliaryBar",
@ -760,7 +762,8 @@
},
{
"id": "editor.action.toggleMinimap",
"label": "&&Minimap"
"label": "&&Minimap",
"checked": true
},
{
"id": "breadcrumbs.toggle",
@ -891,6 +894,10 @@
"id": "workbench.view.extensions",
"label": "E&&xtensions"
},
{
"id": "workbench.view.extension.test",
"label": "T&&esting"
},
{
"id": "vscode.menubar.separator"
},
@ -1804,22 +1811,22 @@
"sideBarSide": "left",
"editorPartMinWidth": 220,
"titleBarHeight": 0,
"activityBarWidth": 0,
"sideBarWidth": 0,
"activityBarWidth": 48,
"sideBarWidth": 295,
"statusBarHeight": 0,
"windowBorder": false
}
},
"windowsState": {
"lastActiveWindow": {
"folder": "file:///home/matt/.config/kitty",
"backupPath": "/home/matt/.config/VSCodium/Backups/f862d78a22ff70d122e141cd428aace5",
"folder": "file:///home/matt/.config/nvim",
"backupPath": "/home/matt/.config/VSCodium/Backups/0cb1dd62df9d1360fc2678a48f592495",
"uiState": {
"mode": 1,
"x": 1234,
"y": 1109,
"width": 1191,
"height": 934
"x": 21,
"y": 78,
"width": 2404,
"height": 933
}
},
"openedWindows": []
@ -1834,7 +1841,7 @@
"folderUri": "file:///home/matt/.config/awesome"
},
{
"folderUri": "file:///home/matt/.config/kitty"
"folderUri": "file:///home/matt/.config/nvim"
}
],
"emptyWindows": []
@ -1893,8 +1900,14 @@
"file:///home/matt/.config/lazygit": "__default__profile__",
"file:///home/matt/.oh-my-zsh/themes": "__default__profile__",
"file:///home/matt/.oh-my-zsh": "__default__profile__",
"file:///home/matt/.config": "__default__profile__",
"file:///home/matt/.config/kitty": "__default__profile__"
"file:///home/matt/.config/kitty": "__default__profile__",
"file:///docs/Documentos/Repos": "-1645caa6",
"file:///docs/Musica": "-1645caa6",
"file:///home/matt/.config/fish": "__default__profile__",
"file:///home/matt/.config/eDEX-UI/themes": "__default__profile__",
"file:///home/matt/.config": "-1645caa6",
"file:///home/matt/.config/nvim/lua": "-1645caa6",
"file:///home/matt/.config/nvim": "-1645caa6"
},
"emptyWindows": {}
},

File diff suppressed because one or more lines are too long

View file

@ -134,7 +134,7 @@
"debug.allowBreakpointsEverywhere": true,
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.defaultProfile.linux": "fish",
"terminal.integrated.fontFamily": "'JetBrains Mono Light', 'monospace', monospace",
"terminal.integrated.gpuAcceleration": "on",
"terminal.integrated.shellIntegration.suggestEnabled": true,
@ -246,8 +246,6 @@
"redhat.telemetry.enabled": false,
"terminal.integrated.env.linux": {},
"cSpell.language": "en, es",
"workbench.editor.showTabs": false,
"editor.minimap.enabled": false,
"[css]": {
"editor.defaultFormatter": "stylelint.vscode-stylelint"
},
@ -255,5 +253,9 @@
"*": false
},
"search.followSymlinks": false,
"workbench.statusBar.visible": false
"workbench.statusBar.visible": false,
"[lua]": {
"editor.defaultFormatter": "sumneko.lua"
},
"workbench.editor.showTabs": false
}

View file

@ -255,5 +255,4 @@
"search.followSymlinks": false,
"workbench.editor.showTabs": false,
"workbench.statusBar.visible": false,
"editor.minimap.enabled": false,
}

View file

@ -1 +0,0 @@
__to_update_bookmark_completions

View file

@ -1,29 +1,8 @@
if status is-interactive
# Commands to run in interactive sessions can go here
neofetch
zoxide init fish | source
. ~/.config/fish/aliases.fish
neofetch
end
alias code='vscodium'
alias ls='exa --long --header -a --icons'
alias tree='exa --long --header -a --icons --tree'
alias bruh='genact -s 4'
alias matrix='unimatrix'
alias q='exit'
alias install='sudo pacman -S '
alias uninstall='sudo pacman -R '
alias yinstall='yay -S '
alias yuninstall='yay -R '
alias update='sudo pacman -Syu'
alias yupdate='yay -Syu'
alias search='pacseek'
alias gpt='tgpt'
alias clock='tty-clock -sbc'
alias files='xplr'
alias sysproc='sysz'
alias cat='bat'
alias dots='yadm enter lazygit'
alias audiorestart='systemctl --user restart wireplumber pipewire pipewire-pulse'
alias info='tldr'
alias cd='z'
alias disks='duf'
starship init fish | source

View file

@ -1,5 +1,4 @@
patrickf1/fzf.fish
franciscolourenco/done
acomagu/fish-async-prompt
matchai/spacefish
joehillen/to-fish

View file

@ -6,9 +6,8 @@ SETUVAR __fish_initialized:3400
SETUVAR _fisher_acomagu_2F_fish_2D_async_2D_prompt_files:\x7e/\x2econfig/fish/conf\x2ed/__async_prompt\x2efish
SETUVAR _fisher_franciscolourenco_2F_done_files:\x7e/\x2econfig/fish/conf\x2ed/done\x2efish
SETUVAR _fisher_joehillen_2F_to_2D_fish_files:\x7e/\x2econfig/fish/functions/to\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/to\x2efish\x1e\x7e/\x2econfig/fish/completions/to\x2efish
SETUVAR _fisher_matchai_2F_spacefish_files:\x7e/\x2econfig/fish/functions/__sf_lib_section\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_aws\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_battery\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_char\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_conda\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_dir\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_docker\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_dotnet\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_elixir\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_exec_time\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_exit_code\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_git\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_git_branch\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_git_status\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_golang\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_haskell\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_host\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_jobs\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_julia\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_kubecontext\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_line_sep\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_node\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_package\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_php\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_pyenv\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_ruby\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_rust\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_time\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_user\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_venv\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_section_vi_mode\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_util_git_branch\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_util_human_time\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_util_set_default\x2efish\x1e\x7e/\x2econfig/fish/functions/__sf_util_truncate_dir\x2efish\x1e\x7e/\x2econfig/fish/functions/fish_mode_prompt\x2efish\x1e\x7e/\x2econfig/fish/functions/fish_prompt\x2efish\x1e\x7e/\x2econfig/fish/functions/fish_right_prompt\x2efish
SETUVAR _fisher_patrickf1_2F_fzf_2E_fish_files:\x7e/\x2econfig/fish/functions/_fzf_configure_bindings_help\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_extract_var_info\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_preview_changed_file\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_preview_file\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_report_diff_type\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_report_file_type\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_directory\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_git_log\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_git_status\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_history\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_processes\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_variables\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_wrapper\x2efish\x1e\x7e/\x2econfig/fish/functions/fzf_configure_bindings\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/fzf\x2efish\x1e\x7e/\x2econfig/fish/completions/fzf_configure_bindings\x2efish
SETUVAR _fisher_plugins:patrickf1/fzf\x2efish\x1efranciscolourenco/done\x1eacomagu/fish\x2dasync\x2dprompt\x1ematchai/spacefish\x1ejoehillen/to\x2dfish
SETUVAR _fisher_plugins:patrickf1/fzf\x2efish\x1efranciscolourenco/done\x1eacomagu/fish\x2dasync\x2dprompt\x1ejoehillen/to\x2dfish
SETUVAR _fisher_upgraded_to_4_4:\x1d
SETUVAR fish_color_autosuggestion:6e738d
SETUVAR fish_color_cancel:ed8796

View file

@ -1,28 +0,0 @@
function __sf_lib_section -a color prefix content suffix
# If there are only 2 args, they are $content and $prefix
if test (count $argv) -eq 2
set content $argv[2]
set prefix
end
if test "$sf_prompt_opened" = "true" -a "$SPACEFISH_PROMPT_PREFIXES_SHOW" = "true"
# Echo prefixes in bold white
set_color --bold
echo -e -n -s $prefix
set_color normal
end
# Set the prompt as having been opened
set -g sf_prompt_opened true
set_color --bold $color
echo -e -n $content
set_color normal
if test "$SPACEFISH_PROMPT_SUFFIXES_SHOW" = "true"
# Echo suffixes in bold white
set_color --bold
echo -e -n -s $suffix
set_color normal
end
end

View file

@ -1,48 +0,0 @@
#
# Amazon Web Services (AWS)
#
# The AWS Command Line Interface (CLI) is a unified tool to manage AWS services.
# Link: https://aws.amazon.com/cli/
function __sf_section_aws -d "Display the selected aws profile"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_AWS_SHOW true
__sf_util_set_default SPACEFISH_AWS_PREFIX "using "
__sf_util_set_default SPACEFISH_AWS_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_AWS_SYMBOL "☁️ "
__sf_util_set_default SPACEFISH_AWS_COLOR ff8700
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show the selected AWS-cli profile
[ $SPACEFISH_AWS_SHOW = false ]; and return
# Ensure the aws command is available
type -q aws; or return
set -l PROFILE_NAME
# if aws-vault is in use, override profile with that
if test -n "$AWS_VAULT"
set PROFILE_NAME "$AWS_VAULT"
else
set PROFILE_NAME "$AWS_PROFILE"
end
# Early return if there's no named profile, or it's set to default
if test -z "$PROFILE_NAME" \
-o "$PROFILE_NAME" = "default"
return
end
__sf_lib_section \
$SPACEFISH_AWS_COLOR \
$SPACEFISH_AWS_PREFIX \
"$SPACEFISH_AWS_SYMBOL""$PROFILE_NAME" \
$SPACEFISH_AWS_SUFFIX
end

View file

@ -1,114 +0,0 @@
#
# Battery
#
function __sf_section_battery -d "Displays battery symbol and charge"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# | SPACEFISH_BATTERY_SHOW | below threshold | above threshold | fully charged |
# |------------------------+-----------------+-----------------+---------------|
# | false | hidden | hidden | hidden |
# | always | shown | shown | shown |
# | true | shown | hidden | hidden |
# | charged | shown | hidden | shown |
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_BATTERY_SHOW true
__sf_util_set_default SPACEFISH_BATTERY_PREFIX ""
__sf_util_set_default SPACEFISH_BATTERY_SUFFIX " "
__sf_util_set_default SPACEFISH_BATTERY_SYMBOL_CHARGING ⇡
__sf_util_set_default SPACEFISH_BATTERY_SYMBOL_DISCHARGING ⇣
__sf_util_set_default SPACEFISH_BATTERY_SYMBOL_FULL •
__sf_util_set_default SPACEFISH_BATTERY_THRESHOLD 10
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show section only if any of the following is true
# - SPACEFISH_BATTERY_SHOW = "always"
# - SPACEFISH_BATTERY_SHOW = "true" and
# - battery percentage is below the given limit (default: 10%)
# - SPACEFISH_BATTERY_SHOW = "charged" and
# - Battery is fully charged
# Check that user wants to show battery levels
[ $SPACEFISH_BATTERY_SHOW = false ]; and return
set -l battery_data
set -l battery_percent
set -l battery_status
set -l battery_color
set -l battery_symbol
# Darwin and macOS machines
if type -q pmset
set battery_data (pmset -g batt | grep "InternalBattery")
# Return if no internal battery
if test -z (echo $battery_data)
return
end
set battery_percent (echo $battery_data | grep -oE "[0-9]{1,3}%")
# spaceship has echo $battery_data | awk -F '; *' 'NR==2 { print $2 }', but NR==2 did not return anything.
set battery_status (echo $battery_data | awk -F '; *' '{ print $2 }')
# Linux machines
else if type -q upower
set -l battery (upower -e | grep battery | head -1)
[ -z $battery ]; and return
set -l IFS # Clear IFS to allow for multi-line variables
set battery_data (upower -i $battery)
set battery_percent (echo $battery_data | grep percentage | awk '{print $2}')
set battery_status (echo $battery_data | grep state | awk '{print $2}')
# Windows machines.
else if type -q acpi
set -l battery_data (acpi -b 2>/dev/null | head -1)
# Return if no battery
[ -z $battery_data ]; and return
set battery_percent ( echo $battery_data | awk '{print $4}' )
set battery_status ( echo $battery_data | awk '{print tolower($3)}' )
else
return
end
# Remove trailing % and symbols for comparison
set battery_percent (echo $battery_percent | string trim --chars=%[,;])
if test "$battery_percent" -eq 100 -o -n (echo (string match -r "(charged|full)" $battery_status))
set battery_color green
else if test "$battery_percent" -lt "$SPACEFISH_BATTERY_THRESHOLD"
set battery_color red
else
set battery_color yellow
end
# Battery indicator based on current status of battery
if test "$battery_status" = "charging"
set battery_symbol $SPACEFISH_BATTERY_SYMBOL_CHARGING
else if test -n (echo (string match -r "^[dD]ischarg.*" $battery_status))
set battery_symbol $SPACEFISH_BATTERY_SYMBOL_DISCHARGING
else
set battery_symbol $SPACEFISH_BATTERY_SYMBOL_FULL
end
if test "$SPACEFISH_BATTERY_SHOW" = "always" \
-o "$battery_percent" -lt "$SPACEFISH_BATTERY_THRESHOLD" \
-o "$SPACEFISH_BATTERY_SHOW" = "charged" \
-a -n (echo (string match -r "(charged|full)" $battery_status))
__sf_lib_section \
$battery_color \
$SPACEFISH_BATTERY_PREFIX \
"$battery_symbol$battery_percent%" \
$SPACEFISH_BATTERY_SUFFIX
end
end

View file

@ -1,35 +0,0 @@
#
# Prompt character
#
function __sf_section_char -d "Display the prompt character"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_CHAR_PREFIX ""
__sf_util_set_default SPACEFISH_CHAR_SUFFIX " "
__sf_util_set_default SPACEFISH_CHAR_SYMBOL ➜
__sf_util_set_default SPACEFISH_CHAR_COLOR_SUCCESS green
__sf_util_set_default SPACEFISH_CHAR_COLOR_FAILURE red
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Color $SPACEFISH_CHAR_SYMBOL red if previous command failed and
# color it in green if the command succeeded.
set -l color
if test $sf_exit_code -eq 0
set color $SPACEFISH_CHAR_COLOR_SUCCESS
else
set color $SPACEFISH_CHAR_COLOR_FAILURE
end
__sf_lib_section \
$color \
$SPACEFISH_CHAR_PREFIX \
$SPACEFISH_CHAR_SYMBOL \
$SPACEFISH_CHAR_SUFFIX
end

View file

@ -1,36 +0,0 @@
#
# Conda
#
# Current Conda version.
function __sf_section_conda -d "Display current Conda version"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_CONDA_SHOW true
__sf_util_set_default SPACEFISH_CONDA_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
__sf_util_set_default SPACEFISH_CONDA_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_CONDA_SYMBOL "🅒 "
__sf_util_set_default SPACEFISH_CONDA_COLOR blue
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_CONDA_SHOW = false ]; and return
# Show Conda version only if conda is installed and CONDA_DEFAULT_ENV is set
if not type -q conda; \
or test -z "$CONDA_DEFAULT_ENV";
return
end
set -l conda_version (conda -V | string split ' ')[2]
__sf_lib_section \
$SPACEFISH_CONDA_COLOR \
$SPACEFISH_CONDA_PREFIX \
"$SPACEFISH_CONDA_SYMBOL"v"$conda_version" \
$SPACEFISH_CONDA_SUFFIX
end

View file

@ -1,54 +0,0 @@
#
# Working directory
#
function __sf_section_dir -d "Display the current truncated directory"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_DIR_SHOW true
__sf_util_set_default SPACEFISH_DIR_PREFIX "in "
__sf_util_set_default SPACEFISH_DIR_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_DIR_TRUNC 3
__sf_util_set_default SPACEFISH_DIR_TRUNC_REPO true
__sf_util_set_default SPACEFISH_DIR_COLOR cyan
# Write Permissions lock symbol
__sf_util_set_default SPACEFISH_DIR_LOCK_SHOW true
__sf_util_set_default SPACEFISH_DIR_LOCK_SYMBOL ""
__sf_util_set_default SPACEFISH_DIR_LOCK_COLOR red
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_DIR_SHOW = false ]; and return
set -l dir
set -l tmp
set -l git_root (command git rev-parse --show-toplevel 2>/dev/null)
if test "$SPACEFISH_DIR_TRUNC_REPO" = "true" -a -n "$git_root"
# Resolve to physical PWD instead of logical
set -l resolvedPWD (pwd -P 2>/dev/null; or pwd)
# Treat repo root as top level directory
set tmp (string replace $git_root (basename $git_root) $resolvedPWD)
else
set -l realhome ~
set tmp (string replace -r '^'"$realhome"'($|/)' '~$1' $PWD)
end
# Truncate the path to have a limited number of dirs
set dir (__sf_util_truncate_dir $tmp $SPACEFISH_DIR_TRUNC)
if [ $SPACEFISH_DIR_LOCK_SHOW = true -a ! -w . ]
set DIR_LOCK_SYMBOL (set_color $SPACEFISH_DIR_LOCK_COLOR)" $SPACEFISH_DIR_LOCK_SYMBOL"(set_color --bold)
end
__sf_lib_section \
$SPACEFISH_DIR_COLOR \
$SPACEFISH_DIR_PREFIX \
$dir \
"$DIR_LOCK_SYMBOL""$SPACEFISH_DIR_SUFFIX"
end

View file

@ -1,52 +0,0 @@
#
# Docker
#
# Current Docker version and Machine name.
function __sf_section_docker -d "Display docker version and machine name"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_DOCKER_SHOW true
__sf_util_set_default SPACEFISH_DOCKER_PREFIX "is "
__sf_util_set_default SPACEFISH_DOCKER_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_DOCKER_SYMBOL "🐳 "
__sf_util_set_default SPACEFISH_DOCKER_COLOR cyan
__sf_util_set_default SPACEFISH_DOCKER_VERBOSE_VERSION false
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_DOCKER_SHOW = false ]; and return
# Show Docker version only if docker is installed
type -q docker; or return
# Show docker version only when pwd has Dockerfile, docker-compose.yml, .dockerenv in root or COMPOSE_FILE
if not test -f Dockerfile \
-o -f docker-compose.yml \
-o -f /.dockerenv \
-o -f "$COMPOSE_FILE"
return
end
set -l docker_version (docker version -f "{{.Server.Version}}" 2>/dev/null)
# if docker daemon isn't running you'll get an error like 'Bad response from Docker engine'
[ -z $docker_version ]; and return
if test "$SPACEFISH_DOCKER_VERBOSE_VERSION" = "false"
set docker_version (string split - $docker_version)[1]
end
if test -n "$DOCKER_MACHINE_NAME"
set docker_version $docker_version via $DOCKER_MACHINE_NAME
end
__sf_lib_section \
$SPACEFISH_DOCKER_COLOR \
$SPACEFISH_DOCKER_PREFIX \
"$SPACEFISH_DOCKER_SYMBOL"v"$docker_version" \
$SPACEFISH_DOCKER_SUFFIX
end

View file

@ -1,50 +0,0 @@
#
# .NET
#
# .NET Framework is a software framework developed by Microsoft.
# It includes a large class library and provides language interoperability
# across several programming languages.
# Link: https://www.microsoft.com/net
function __sf_section_dotnet -d "Display the .NET SDK version"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_DOTNET_SHOW true
__sf_util_set_default SPACEFISH_DOTNET_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
__sf_util_set_default SPACEFISH_DOTNET_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_DOTNET_SYMBOL ".NET "
__sf_util_set_default SPACEFISH_DOTNET_COLOR "af00d7" # 128 in the original version, but renders as blue in iTerm2?
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show current version of .NET SDK
[ $SPACEFISH_DOTNET_SHOW = false ]; and return
# Ensure the dotnet command is available
type -q dotnet; or return
if not test -f project.json \
-o -f global.json \
-o -f paket.dependencies \
-o (count *.csproj) -gt 0 \
-o (count *.fsproj) -gt 0 \
-o (count *.xproj) -gt 0 \
-o (count *.sln) -gt 0
return
end
# From the
# dotnet-cli automatically handles SDK pinning (specified in a global.json file)
# therefore, this already returns the expected version for the current directory
set -l dotnet_version (dotnet --version 2>/dev/null)
__sf_lib_section \
$SPACEFISH_DOTNET_COLOR \
$SPACEFISH_DOTNET_PREFIX \
"$SPACEFISH_DOTNET_SYMBOL""$dotnet_version" \
$SPACEFISH_DOTNET_SUFFIX
end

View file

@ -1,57 +0,0 @@
#
# Elixir
#
# A dynamic, reflective, object-oriented, general-purpose programming language.
# Link: https://www.elixir-lang.org/
function __sf_section_elixir -d "Show current version of Elixir"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_ELIXIR_SHOW true
__sf_util_set_default SPACEFISH_ELIXIR_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
__sf_util_set_default SPACEFISH_ELIXIR_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_ELIXIR_SYMBOL "💧 "
__sf_util_set_default SPACEFISH_ELIXIR_DEFAULT_VERSION $SPACEFISH_ELIXIR_DEFAULT_VERSION
__sf_util_set_default SPACEFISH_ELIXIR_COLOR magenta
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Check if that user wants to show elixir version
[ $SPACEFISH_ELIXIR_SHOW = false ]; and return
# Show versions only for Elixir-specific folders
if not test -f mix.exs \
-o (count *.ex) -gt 0 \
-o (count *.exs) -gt 0
return
end
set -l elixir_version
if type -q kiex
set elixir_version $ELIXIR_VERSION
else if type -q exenv
set elixir_version (exenv version-name)
else if type -q elixir
set elixir_version (elixir -v 2>/dev/null | string match -r "Elixir.*" | string split " ")[2]
else
return
end
[ -z "$elixir_version" -o "$elixir_version" = "system" ]; and return
# Add 'v' before elixir version that starts with a number
if test -n (echo (string match -r "^[0-9].+\$" "$elixir_version"))
set elixir_version "v$elixir_version"
end
__sf_lib_section \
$SPACEFISH_ELIXIR_COLOR \
$SPACEFISH_ELIXIR_PREFIX \
"$SPACEFISH_ELIXIR_SYMBOL""$elixir_version" \
$SPACEFISH_ELIXIR_SUFFIX
end

View file

@ -1,33 +0,0 @@
#
# Execution time
#
function __sf_section_exec_time -d "Display the execution time of the last command"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_EXEC_TIME_SHOW true
__sf_util_set_default SPACEFISH_EXEC_TIME_PREFIX "took "
__sf_util_set_default SPACEFISH_EXEC_TIME_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_EXEC_TIME_COLOR yellow
__sf_util_set_default SPACEFISH_EXEC_TIME_ELAPSED 5
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_EXEC_TIME_SHOW = false ]; and return
# Allow for compatibility between fish 2.7 and 3.0
set -l command_duration "$CMD_DURATION$cmd_duration"
if test -n "$command_duration" -a "$command_duration" -gt (math "$SPACEFISH_EXEC_TIME_ELAPSED * 1000")
set -l human_command_duration (echo $command_duration | __sf_util_human_time)
__sf_lib_section \
$SPACEFISH_EXEC_TIME_COLOR \
$SPACEFISH_EXEC_TIME_PREFIX \
$human_command_duration \
$SPACEFISH_EXEC_TIME_SUFFIX
end
end

View file

@ -1,26 +0,0 @@
# Exit-code
#
function __sf_section_exit_code -d "Shows the exit code from the previous command."
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_EXIT_CODE_SHOW false
__sf_util_set_default SPACEFISH_EXIT_CODE_PREFIX ""
__sf_util_set_default SPACEFISH_EXIT_CODE_SUFFIX " "
__sf_util_set_default SPACEFISH_EXIT_CODE_SYMBOL ✘
__sf_util_set_default SPACEFISH_EXIT_CODE_COLOR red
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_EXIT_CODE_SHOW = false ]; or test $sf_exit_code -eq 0; and return
__sf_lib_section \
$SPACEFISH_EXIT_CODE_COLOR \
$SPACEFISH_EXIT_CODE_PREFIX \
"$SPACEFISH_EXIT_CODE_SYMBOL$sf_exit_code" \
$SPACEFISH_EXIT_CODE_SUFFIX
end

View file

@ -1,35 +0,0 @@
#
# Git
#
function __sf_section_git -d "Display the git branch and status"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_GIT_SHOW true
__sf_util_set_default SPACEFISH_GIT_PREFIX "on "
__sf_util_set_default SPACEFISH_GIT_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_GIT_SYMBOL " "
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show both git branch and git status:
# spacefish_git_branch
# spacefish_git_status
[ $SPACEFISH_GIT_SHOW = false ]; and return
set -l git_branch (__sf_section_git_branch)
set -l git_status (__sf_section_git_status)
[ -z $git_branch ]; and return
__sf_lib_section \
fff \
$SPACEFISH_GIT_PREFIX \
"$git_branch$git_status" \
$SPACEFISH_GIT_SUFFIX
end

View file

@ -1,28 +0,0 @@
#
# Git branch
#
function __sf_section_git_branch -d "Format the displayed branch name"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_GIT_BRANCH_SHOW true
__sf_util_set_default SPACEFISH_GIT_BRANCH_PREFIX $SPACEFISH_GIT_SYMBOL
__sf_util_set_default SPACEFISH_GIT_BRANCH_SUFFIX ""
__sf_util_set_default SPACEFISH_GIT_BRANCH_COLOR magenta
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_GIT_BRANCH_SHOW = false ]; and return
set -l git_branch (__sf_util_git_branch)
[ -z $git_branch ]; and return
__sf_lib_section \
$SPACEFISH_GIT_BRANCH_COLOR \
$SPACEFISH_GIT_BRANCH_PREFIX$git_branch$SPACEFISH_GIT_BRANCH_SUFFIX
end

View file

@ -1,100 +0,0 @@
#
# Git status
#
function __sf_section_git_status -d "Display the current git status"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_GIT_STATUS_SHOW true
__sf_util_set_default SPACEFISH_GIT_STATUS_PREFIX " ["
__sf_util_set_default SPACEFISH_GIT_STATUS_SUFFIX ]
__sf_util_set_default SPACEFISH_GIT_STATUS_COLOR red
__sf_util_set_default SPACEFISH_GIT_STATUS_UNTRACKED \?
__sf_util_set_default SPACEFISH_GIT_STATUS_ADDED +
__sf_util_set_default SPACEFISH_GIT_STATUS_MODIFIED !
__sf_util_set_default SPACEFISH_GIT_STATUS_RENAMED »
__sf_util_set_default SPACEFISH_GIT_STATUS_DELETED ✘
__sf_util_set_default SPACEFISH_GIT_STATUS_STASHED \$
__sf_util_set_default SPACEFISH_GIT_STATUS_UNMERGED =
__sf_util_set_default SPACEFISH_GIT_STATUS_AHEAD ⇡
__sf_util_set_default SPACEFISH_GIT_STATUS_BEHIND ⇣
__sf_util_set_default SPACEFISH_GIT_STATUS_DIVERGED ⇕
__sf_util_set_default SPACEFISH_GIT_PROMPT_ORDER untracked added modified renamed deleted stashed unmerged diverged ahead behind
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_GIT_STATUS_SHOW = false ]; and return
set -l git_status
set -l is_ahead
set -l is_behind
set -l index (command git status --porcelain 2>/dev/null -b)
set -l trimmed_index (string split \n $index | string sub --start 1 --length 2)
for i in $trimmed_index
if test (string match '\?\?' $i)
set git_status untracked $git_status
end
if test (string match '*A*' $i)
set git_status added $git_status
end
if test (string match '*M*' $i)
set git_status modified $git_status
end
if test (string match '*R*' $i)
set git_status renamed $git_status
end
if test (string match '*D*' $i)
set git_status deleted $git_status
end
if test (string match '*U*' $i)
set git_status unmerged $git_status
end
end
# Check for stashes
if test -n (echo (command git rev-parse --verify refs/stash 2>/dev/null))
set git_status stashed $git_status
end
# Check whether the branch is ahead
if test (string match '*ahead*' $index)
set is_ahead true
end
# Check whether the branch is behind
if test (string match '*behind*' $index)
set is_behind true
end
# Check whether the branch has diverged
if test "$is_ahead" = "true" -a "$is_behind" = "true"
set git_status diverged $git_status
else if test "$is_ahead" = "true"
set git_status ahead $git_status
else if test "$is_behind" = "true"
set git_status behind $git_status
end
set -l full_git_status
for i in $SPACEFISH_GIT_PROMPT_ORDER
set i (string upper $i)
set git_status (string upper $git_status)
if contains $i in $git_status
set -l status_symbol SPACEFISH_GIT_STATUS_$i
set full_git_status "$$status_symbol$full_git_status"
end
end
# Check if git status
if test -n "$full_git_status"
__sf_lib_section \
$SPACEFISH_GIT_STATUS_COLOR \
"$SPACEFISH_GIT_STATUS_PREFIX$full_git_status$SPACEFISH_GIT_STATUS_SUFFIX"
end
end

View file

@ -1,55 +0,0 @@
#
# Go
#
# Go is an open source programming language that makes it easy
# to build efficient software.
# Link: https://golang.org/
function __sf_section_golang -d "Display the current go version if you're inside GOPATH"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_GOLANG_SHOW true
__sf_util_set_default SPACEFISH_GOLANG_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
__sf_util_set_default SPACEFISH_GOLANG_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_GOLANG_SYMBOL "🐹 "
__sf_util_set_default SPACEFISH_GOLANG_COLOR cyan
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show the current version of Golang
[ $SPACEFISH_GOLANG_SHOW = false ]; and return
# Ensure the go command is available
type -q go; or return
if not test -f go.mod \
-o -d Godeps \
-o -f glide.yaml \
-o (count *.go) -gt 0 \
-o -f Gopkg.yml \
-o -f Gopkg.lock \
-o ([ (count $GOPATH) -gt 0 ]; and string match $GOPATH $PWD)
return
end
set -l go_version (go version | string split ' ')
# Go version is either the commit hash and date (devel +5efe9a8f11 Web Jan 9 07:21:16 2019 +0000)
# at the time of the build or a release tag (go1.11.4)
# https://github.com/matchai/spacefish/issues/137
if test (string match 'devel*' $go_version[3])
set go_version $go_version[3]":"(string sub -s 2 $go_version[4])
else
set go_version "v"(string sub -s 3 $go_version[3])
end
__sf_lib_section \
$SPACEFISH_GOLANG_COLOR \
$SPACEFISH_GOLANG_PREFIX \
"$SPACEFISH_GOLANG_SYMBOL""$go_version" \
$SPACEFISH_GOLANG_SUFFIX
end

View file

@ -1,38 +0,0 @@
#
# Haskell Stack
#
# An advanced, purely functional programming language.
# Link: https://www.haskell.org/
function __sf_section_haskell -d "Show current version of Haskell Tool Stack"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_HASKELL_SHOW true
__sf_util_set_default SPACEFISH_HASKELL_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
__sf_util_set_default SPACEFISH_HASKELL_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_HASKELL_SYMBOL "λ "
__sf_util_set_default SPACEFISH_HASKELL_COLOR red
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show current version of Haskell Tool Stack.
[ $SPACEFISH_HASKELL_SHOW = false ]; and return
# Ensure the stack command is available
type -q stack; or return
# If there are stack files in current directory
[ -f ./stack.yaml ]; or return
set -l haskell_version (stack ghc -- --numeric-version --no-install-ghc)
__sf_lib_section \
$SPACEFISH_HASKELL_COLOR \
$SPACEFISH_HASKELL_PREFIX \
"$SPACEFISH_HASKELL_SYMBOL"v"$haskell_version" \
$SPACEFISH_HASKELL_SUFFIX
end

View file

@ -1,41 +0,0 @@
#
# Hostname
#
# If there is an ssh connections, current machine name.
function __sf_section_host -d "Display the current hostname if connected over SSH"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_HOST_SHOW true
__sf_util_set_default SPACEFISH_HOST_PREFIX "at "
__sf_util_set_default SPACEFISH_HOST_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_HOST_COLOR blue
__sf_util_set_default SPACEFISH_HOST_COLOR_SSH green
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ "$SPACEFISH_HOST_SHOW" = false ]; and return
if test "$SPACEFISH_HOST_SHOW" = "always"; or set -q SSH_CONNECTION;
# Determination of what color should be used
set -l host_color
if set -q SSH_CONNECTION;
set host_color $SPACEFISH_HOST_COLOR_SSH
else
set host_color $SPACEFISH_HOST_COLOR
end
__sf_lib_section \
$host_color \
$SPACEFISH_HOST_PREFIX \
(hostname) \
$SPACEFISH_HOST_SUFFIX
end
end

View file

@ -1,43 +0,0 @@
# Jobs
#
function __sf_section_jobs -d "Show icon, if there's a working jobs in the background."
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_JOBS_SHOW true
__sf_util_set_default SPACEFISH_JOBS_PREFIX ""
__sf_util_set_default SPACEFISH_JOBS_SUFFIX " "
__sf_util_set_default SPACEFISH_JOBS_SYMBOL ✦
__sf_util_set_default SPACEFISH_JOBS_COLOR blue
__sf_util_set_default SPACEFISH_JOBS_AMOUNT_PREFIX ""
__sf_util_set_default SPACEFISH_JOBS_AMOUNT_SUFFIX ""
__sf_util_set_default SPACEFISH_JOBS_AMOUNT_THRESHOLD 1
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_JOBS_SHOW = false ]; and return
set jobs_amount (jobs | wc -l | xargs) # Zsh had a much more complicated command.
if test $jobs_amount -eq 0
return
end
if test $jobs_amount -le $SPACEFISH_JOBS_AMOUNT_THRESHOLD
set jobs_amount ''
set SPACEFISH_JOBS_AMOUNT_PREFIX ''
set SPACEFISH_JOBS_AMOUNT_SUFFIX ''
end
set SPACEFISH_JOBS_SECTION "$SPACEFISH_JOBS_SYMBOL$SPACEFISH_JOBS_AMOUNT_PREFIX$jobs_amount$SPACEFISH_JOBS_AMOUNT_SUFFIX"
__sf_lib_section \
$SPACEFISH_JOBS_COLOR \
$SPACEFISH_JOBS_PREFIX \
$SPACEFISH_JOBS_SECTION \
$SPACEFISH_JOBS_SUFFIX
end

View file

@ -1,36 +0,0 @@
#
# Julia
#
# Current Julia version.
function __sf_section_julia -d "Display julia version"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_JULIA_SHOW true
__sf_util_set_default SPACEFISH_JULIA_PREFIX "is "
__sf_util_set_default SPACEFISH_JULIA_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_JULIA_SYMBOL "ஃ "
__sf_util_set_default SPACEFISH_JULIA_COLOR green
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_JULIA_SHOW = false ]; and return
# Show Julia version only if julia is installed
type -q julia; or return
# Show julia version only when pwd has *.jl file(s)
[ (count *.jl) -gt 0 ]; or return
set -l julia_version (julia --version | grep --color=never -oE '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]')
__sf_lib_section \
$SPACEFISH_JULIA_COLOR \
$SPACEFISH_JULIA_PREFIX \
"$SPACEFISH_JULIA_SYMBOL"v"$julia_version" \
$SPACEFISH_JULIA_SUFFIX
end

View file

@ -1,45 +0,0 @@
#
# Kubernetes (kubectl)
#
# Kubernetes is an open-source system for deployment, scaling,
# and management of containerized applications.
# Link: https://kubernetes.io/
function __sf_section_kubecontext -d "Display the kubernetes context"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_KUBECONTEXT_SHOW true
__sf_util_set_default SPACEFISH_KUBECONTEXT_NAMESPACE_SHOW true
__sf_util_set_default SPACEFISH_KUBECONTEXT_PREFIX "at "
__sf_util_set_default SPACEFISH_KUBECONTEXT_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
# Additional space is added because ☸️ is wider than other symbols
# See: https://github.com/denysdovhan/spaceship-prompt/pull/432
__sf_util_set_default SPACEFISH_KUBECONTEXT_SYMBOL "☸️ "
__sf_util_set_default SPACEFISH_KUBECONTEXT_COLOR cyan
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show current kubecontext
[ $SPACEFISH_KUBECONTEXT_SHOW = false ]; and return
# Ensure the kubectl command is available
type -q kubectl; or return
set -l kube_context (kubectl config current-context 2>/dev/null)
[ -z $kube_context ]; and return
if test "$SPACEFISH_KUBECONTEXT_NAMESPACE_SHOW" = "true" -a "$kube_context" != "default"
set kube_namespace (kubectl config view --minify --output 'jsonpath={..namespace}' 2>/dev/null)
set kube_context "$kube_context ($kube_namespace)"
end
__sf_lib_section \
$SPACEFISH_KUBECONTEXT_COLOR \
$SPACEFISH_KUBECONTEXT_PREFIX \
"$SPACEFISH_KUBECONTEXT_SYMBOL""$kube_context" \
$SPACEFISH_KUBECONTEXT_SUFFIX
end

View file

@ -1,19 +0,0 @@
#
# Line separator
#
function __sf_section_line_sep -d "Separate the prompt into two lines"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_PROMPT_SEPARATE_LINE true
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
if test "$SPACEFISH_PROMPT_SEPARATE_LINE" = "true"
echo -e -n \n
end
end

View file

@ -1,58 +0,0 @@
#
# Node.js
#
# Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.
# Link: https://nodejs.org/
function __sf_section_node -d "Display the local node version"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_NODE_SHOW true
__sf_util_set_default SPACEFISH_NODE_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
__sf_util_set_default SPACEFISH_NODE_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_NODE_SYMBOL "⬢ "
__sf_util_set_default SPACEFISH_NODE_DEFAULT_VERSION ""
__sf_util_set_default SPACEFISH_NODE_COLOR green
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show the current version of Node
[ $SPACEFISH_NODE_SHOW = false ]; and return
# Show versions only for Node-specific folders
if not test -f ./package.json \
-o -d ./node_modules \
-o (count *.js) -gt 0
return
end
if type -q nvm
# Only recheck the node version if the nvm bin has changed
if test "$NVM_BIN" != "$sf_last_nvm_bin" -o -z "$sf_node_version"
set -g sf_node_version (nvm current 2>/dev/null)
set -g sf_last_nvm_bin $NVM_BIN
end
else if type -q nodenv
set -g sf_node_version (nodenv version-name 2>/dev/null)
else if type -q node
set -g sf_node_version (node -v 2>/dev/null)
else
return
end
# Don't echo section if the system verison of node is being used
[ "$sf_node_version" = "system" -o "$sf_node_version" = "node" ]; and return
# Don't echo section if the node version matches the default version
[ "$sf_node_version" = "$SPACEFISH_NODE_DEFAULT_VERSION" ]; and return
__sf_lib_section \
$SPACEFISH_NODE_COLOR \
$SPACEFISH_NODE_PREFIX \
"$SPACEFISH_NODE_SYMBOL$sf_node_version" \
$SPACEFISH_NODE_SUFFIX
end

View file

@ -1,72 +0,0 @@
#
# Package
#
# Current package version.
# These package managers supported:
# * NPM
# * Cargo
function __sf_section_package -d "Display the local package version"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_PACKAGE_SHOW true
__sf_util_set_default SPACEFISH_PACKAGE_PREFIX "is "
__sf_util_set_default SPACEFISH_PACKAGE_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_PACKAGE_SYMBOL "📦 "
__sf_util_set_default SPACEFISH_PACKAGE_COLOR red
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_PACKAGE_SHOW = false ]; and return
# Exit if there is no package.json or Cargo.toml
if not test -e ./package.json; and not test -e ./Cargo.toml
return
end
set -l package_version
# Check if package.json exists AND npm exists locally while supressing output to just exit code (-q)
if type -q npm; and test -f ./package.json
# Check if jq (json handler) exists locally. If yes, check in package.json version
if type -q jq
set package_version (jq -r '.version' package.json 2>/dev/null)
# Check if python exists locally, use json to check version in package.json
else if type -q python
set package_version (python -c "import json; print(json.load(open('package.json'))['version'])" 2>/dev/null)
# Check if node exists locally, use it to check version of package.json
else if type -q node
set package_version (node -p "require('./package.json').version" 2>/dev/null)
end
end
# Check if Cargo.toml exists and cargo command exists
# and use cargo pkgid to figure out the package
if type -q cargo; and test -f ./Cargo.toml
# Handle missing field `version` in Cargo.toml.
# `cargo pkgid` needs Cargo.lock to exists too. If
# it doesn't, do not show package version
set -l pkgid (cargo pkgid 2>&1)
# Early return on error
echo $pkgid | grep -q "error:"; and return
# Example input: abc#1.0.0. Example output: 1.0.1
set package_version (string match -r '#(.*)' $pkgid)[2]
end
if test -z "$package_version"
set package_version
else
set package_version "v$package_version"
end
__sf_lib_section \
$SPACEFISH_PACKAGE_COLOR \
$SPACEFISH_PACKAGE_PREFIX \
"$SPACEFISH_PACKAGE_SYMBOL$package_version" \
$SPACEFISH_PACKAGE_SUFFIX
end

View file

@ -1,40 +0,0 @@
#
# PHP
#
# PHP is a server-side scripting language designed primarily for web development.
# Link: http://www.php.net/
function __sf_section_php -d "Display the current php version"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_PHP_SHOW true
__sf_util_set_default SPACEFISH_PHP_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
__sf_util_set_default SPACEFISH_PHP_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_PHP_SYMBOL "🐘 "
__sf_util_set_default SPACEFISH_PHP_COLOR blue
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show current version of PHP
[ $SPACEFISH_PHP_SHOW = false ]; and return
# Ensure the php command is available
type -q php; or return
if not test -f composer.json \
-o (count *.php) -gt 0
return
end
set -l php_version (php -v | string match -r 'PHP\s*[0-9.]+' | string split ' ')[2]
__sf_lib_section \
$SPACEFISH_PHP_COLOR \
$SPACEFISH_PHP_PREFIX \
"$SPACEFISH_PHP_SYMBOL"v"$php_version" \
$SPACEFISH_PHP_SUFFIX
end

View file

@ -1,41 +0,0 @@
# pyenv
#
function __sf_section_pyenv -d "Show current version of pyenv Python, including system."
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_PYENV_SHOW true
__sf_util_set_default SPACEFISH_PYENV_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
__sf_util_set_default SPACEFISH_PYENV_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_PYENV_SYMBOL "🐍 "
__sf_util_set_default SPACEFISH_PYENV_COLOR yellow
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show pyenv python version
[ $SPACEFISH_PYENV_SHOW = false ]; and return
# Ensure the pyenv command is available
type -q pyenv; or return
# Show pyenv python version only for Python-specific folders
if not test -n "$PYENV_VERSION" \
-o -f .python-version \
-o -f requirements.txt \
-o -f pyproject.toml \
-o (count *.py) -gt 0
return
end
set -l pyenv_status (pyenv version-name 2>/dev/null) # This line needs explicit testing in an enviroment that has pyenv.
__sf_lib_section \
$SPACEFISH_PYENV_COLOR \
$SPACEFISH_PYENV_PREFIX \
"$SPACEFISH_PYENV_SYMBOL""$pyenv_status" \
$SPACEFISH_PYENV_SUFFIX
end

View file

@ -1,58 +0,0 @@
#
# Ruby
#
# A dynamic, reflective, object-oriented, general-purpose programming language.
# Link: https://www.ruby-lang.org/
function __sf_section_ruby -d "Show current version of Ruby"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_RUBY_SHOW true
__sf_util_set_default SPACEFISH_RUBY_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
__sf_util_set_default SPACEFISH_RUBY_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_RUBY_SYMBOL "💎 "
__sf_util_set_default SPACEFISH_RUBY_COLOR red
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Check if that user wants to show ruby version
[ $SPACEFISH_RUBY_SHOW = false ]; and return
# Show versions only for Ruby-specific folders
if not test -f Gemfile \
-o -f Rakefile \
-o (count *.rb) -gt 0
return
end
set -l ruby_version
if type -q rvm-prompt
set ruby_version (rvm-prompt i v g)
else if type -q rbenv
set ruby_version (rbenv version-name)
else if type -q chruby
set ruby_version $RUBY_AUTO_VERSION
else if type -q asdf
set ruby_version (asdf current ruby | awk '{print $1}')
else
return
end
[ -z "$ruby_version" -o "$ruby_version" = "system" ]; and return
# Add 'v' before ruby version that starts with a number
if test -n (echo (string match -r "^[0-9].+\$" "$ruby_version"))
set ruby_version "v$ruby_version"
end
__sf_lib_section \
$SPACEFISH_RUBY_COLOR \
$SPACEFISH_RUBY_PREFIX \
"$SPACEFISH_RUBY_SYMBOL""$ruby_version" \
$SPACEFISH_RUBY_SUFFIX
end

View file

@ -1,45 +0,0 @@
#
# Rust
#
# Rust is a systems programming language sponsored by Mozilla Research.
# Link: https://www.rust-lang.org
function __sf_section_rust -d "Display the current Rust version"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_RUST_SHOW true
__sf_util_set_default SPACEFISH_RUST_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
__sf_util_set_default SPACEFISH_RUST_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_RUST_SYMBOL "𝗥 "
__sf_util_set_default SPACEFISH_RUST_COLOR red
__sf_util_set_default SPACEFISH_RUST_VERBOSE_VERSION false
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show current version of Rust
[ $SPACEFISH_RUST_SHOW = false ]; and return
# Ensure the rustc command is available
type -q rustc; or return
if not test -f Cargo.toml \
-o (count *.rs) -gt 0
return
end
set -l rust_version (rustc --version | string split ' ')[2]
if test $SPACEFISH_RUST_VERBOSE_VERSION = false
set rust_version (string split '-' $rust_version)[1] # Cut off -suffixes from version. "v1.30.0-beta" vs "v1.30.0"
end
__sf_lib_section \
$SPACEFISH_RUST_COLOR \
$SPACEFISH_RUST_PREFIX \
"$SPACEFISH_RUST_SYMBOL"v"$rust_version" \
$SPACEFISH_RUST_SUFFIX
end

View file

@ -1,43 +0,0 @@
#
# Time
#
function __sf_section_time -d "Display the current time!"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_TIME_SHOW false
__sf_util_set_default SPACEFISH_DATE_SHOW false
__sf_util_set_default SPACEFISH_TIME_PREFIX "at "
__sf_util_set_default SPACEFISH_TIME_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_TIME_FORMAT false
__sf_util_set_default SPACEFISH_TIME_12HR false
__sf_util_set_default SPACEFISH_TIME_COLOR "yellow"
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_TIME_SHOW = false ]; and return
set -l time_str
if test $SPACEFISH_DATE_SHOW = true
set time_str (date '+%Y-%m-%d')" "
end
if not test $SPACEFISH_TIME_FORMAT = false
set time_str "$time_str"(date '+'$SPACEFISH_TIME_FORMAT)
else if test $SPACEFISH_TIME_12HR = true
set time_str "$time_str"(date '+%I:%M:%S') # Fish doesn't seem to have date/time formatting.
else
set time_str "$time_str"(date '+%H:%M:%S')
end
__sf_lib_section \
$SPACEFISH_TIME_COLOR \
$SPACEFISH_TIME_PREFIX \
$time_str \
$SPACEFISH_TIME_SUFFIX
end

View file

@ -1,49 +0,0 @@
#
# Username
#
function __sf_section_user -d "Display the username"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
# --------------------------------------------------------------------------
# | SPACEFISH_USER_SHOW | show username on local | show username on remote |
# |---------------------+------------------------+-------------------------|
# | false | never | never |
# | always | always | always |
# | true | if needed | always |
# | needed | if needed | if needed |
# --------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_USER_SHOW true
__sf_util_set_default SPACEFISH_USER_PREFIX "with "
__sf_util_set_default SPACEFISH_USER_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_USER_COLOR yellow
__sf_util_set_default SPACEFISH_USER_COLOR_ROOT red
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_USER_SHOW = false ]; and return
if test "$SPACEFISH_USER_SHOW" = "always" \
-o "$LOGNAME" != "$USER" \
-o "$UID" = "0" \
-o \( "$SPACEFISH_USER_SHOW" = "true" -a -n "$SSH_CONNECTION" \)
set -l user_color
if test "$USER" = "root"
set user_color $SPACEFISH_USER_COLOR_ROOT
else
set user_color $SPACEFISH_USER_COLOR
end
__sf_lib_section \
$user_color \
$SPACEFISH_USER_PREFIX \
$USER \
$SPACEFISH_USER_SUFFIX
end
end

View file

@ -1,36 +0,0 @@
# virtualenv
#
function __sf_section_venv -d "Show current virtual Python environment"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_VENV_SHOW true
__sf_util_set_default SPACEFISH_VENV_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
__sf_util_set_default SPACEFISH_VENV_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_VENV_SYMBOL "·"
__sf_util_set_default SPACEFISH_VENV_GENERIC_NAMES virtualenv venv .venv
__sf_util_set_default SPACEFISH_VENV_COLOR blue
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
# Show venv python version
test $SPACEFISH_VENV_SHOW = false; and return
# Check if the current directory running via Virtualenv
test -n "$VIRTUAL_ENV"; or return
set -l venv (basename $VIRTUAL_ENV)
if contains $venv $SPACEFISH_VENV_GENERIC_NAMES
set venv (basename (dirname $VIRTUAL_ENV))
end
__sf_lib_section \
$SPACEFISH_VENV_COLOR \
$SPACEFISH_VENV_PREFIX \
"$SPACEFISH_VENV_SYMBOL""$venv" \
$SPACEFISH_VENV_SUFFIX
end

View file

@ -1,51 +0,0 @@
#
# Vi Mode
#
function __sf_section_vi_mode -d "Display vi mode status"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_VI_MODE_SHOW true
__sf_util_set_default SPACEFISH_VI_MODE_PREFIX " "
__sf_util_set_default SPACEFISH_VI_MODE_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
__sf_util_set_default SPACEFISH_VI_MODE_INSERT [I]
__sf_util_set_default SPACEFISH_VI_MODE_NORMAL [N]
__sf_util_set_default SPACEFISH_VI_MODE_VISUAL [V]
__sf_util_set_default SPACEFISH_VI_MODE_REPLACE_ONE [R]
__sf_util_set_default SPACEFISH_VI_MODE_COLOR white
# ------------------------------------------------------------------------------
# Section
# ------------------------------------------------------------------------------
[ $SPACEFISH_VI_MODE_SHOW = false ]; and return
# Ensure fish_vi_key_bindings or fish_hybrid_key_bindings are used
# Here we are trying to be compatible with default fish_mode_prompt implementation,
# wich handle both "fish_vi_key_bindings" and "fish_hybrid_key_bindings"
[ "$fish_key_bindings" = "fish_vi_key_bindings" ]; or [ "$fish_key_bindings" = "fish_hybrid_key_bindings" ]; or return
# Use `set -l` to define local variables to avoid populating
# the global namespace
set -l vi_mode_symbol
# Check current mode and set vi_mode_symbol based on it
switch $fish_bind_mode
case default
set vi_mode_symbol $SPACEFISH_VI_MODE_NORMAL
case insert
set vi_mode_symbol $SPACEFISH_VI_MODE_INSERT
case replace_one
set vi_mode_symbol $SPACEFISH_VI_MODE_REPLACE_ONE
case visual
set vi_mode_symbol $SPACEFISH_VI_MODE_VISUAL
end
__sf_lib_section \
$SPACEFISH_VI_MODE_COLOR \
$SPACEFISH_VI_MODE_PREFIX \
$vi_mode_symbol \
$SPACEFISH_VI_MODE_SUFFIX
end

View file

@ -1,7 +0,0 @@
#
# Git branch
#
function __sf_util_git_branch -d "Display the current branch name"
echo (command git rev-parse --abbrev-ref HEAD 2>/dev/null)
end

View file

@ -1,23 +0,0 @@
#
# Human time
#
function __sf_util_human_time -d "Humanize a time interval for display"
command awk '
function hmTime(time, stamp) {
split("h:m:s:ms", units, ":")
for (i = 2; i >= -1; i--) {
if (t = int( i < 0 ? time % 1000 : time / (60 ^ i * 1000) % 60 )) {
stamp = stamp t units[sqrt((i - 2) ^ 2) + 1] " "
}
}
if (stamp ~ /^ *$/) {
return "0ms"
}
return substr(stamp, 1, length(stamp) - 1)
}
{
print hmTime($0)
}
'
end

View file

@ -1,10 +0,0 @@
#
# Set default
#
function __sf_util_set_default -a var -d "Set the default value for a global variable"
if not set -q $var
# Multiple arguments will become a list
set -g $var $argv[2..-1]
end
end

View file

@ -1,17 +0,0 @@
#
# Truncate directory
#
function __sf_util_truncate_dir -a path truncate_to -d "Truncate a directory path"
if test "$truncate_to" -eq 0
echo $path
else
set -l folders (string split / $path)
if test (count $folders) -le "$truncate_to"
echo $path
else
echo (string join / $folders[(math 0 - $truncate_to)..-1])
end
end
end

View file

@ -1,4 +0,0 @@
function fish_mode_prompt
# Overriden by Spacefish fishshell theme
# To see vi mode in prompt add 'vi_mode' to SPACEFISH_PROMPT_ORDER
end

View file

@ -1,33 +0,0 @@
function fish_prompt
# Store the exit code of the last command
set -g sf_exit_code $status
set -g SPACEFISH_VERSION 2.7.0
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_PROMPT_ADD_NEWLINE true
__sf_util_set_default SPACEFISH_PROMPT_FIRST_PREFIX_SHOW false
__sf_util_set_default SPACEFISH_PROMPT_PREFIXES_SHOW true
__sf_util_set_default SPACEFISH_PROMPT_SUFFIXES_SHOW true
__sf_util_set_default SPACEFISH_PROMPT_DEFAULT_PREFIX "via "
__sf_util_set_default SPACEFISH_PROMPT_DEFAULT_SUFFIX " "
__sf_util_set_default SPACEFISH_PROMPT_ORDER time user dir host git package node ruby golang php rust haskell julia elixir docker aws venv conda pyenv dotnet kubecontext exec_time line_sep battery vi_mode jobs exit_code char
# ------------------------------------------------------------------------------
# Sections
# ------------------------------------------------------------------------------
# Keep track of whether the prompt has already been opened
set -g sf_prompt_opened $SPACEFISH_PROMPT_FIRST_PREFIX_SHOW
if test "$SPACEFISH_PROMPT_ADD_NEWLINE" = "true"
echo
end
for i in $SPACEFISH_PROMPT_ORDER
eval __sf_section_$i
end
set_color normal
end

View file

@ -1,30 +0,0 @@
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
set -l normal (set_color normal)
set -l status_color (set_color brgreen)
set -l cwd_color (set_color $fish_color_cwd)
set -l vcs_color (set_color brpurple)
set -l prompt_status ""
# Since we display the prompt on a new line allow the directory names to be longer.
set -q fish_prompt_pwd_dir_length
or set -lx fish_prompt_pwd_dir_length 0
# Color the prompt differently when we're root
set -l suffix ''
if functions -q fish_is_root_user; and fish_is_root_user
if set -q fish_color_cwd_root
set cwd_color (set_color $fish_color_cwd_root)
end
set suffix '#'
end
# Color the prompt in red on error
if test $last_status -ne 0
set status_color (set_color $fish_color_error)
set prompt_status $status_color "[" $last_status "]" $normal
end
echo -s (prompt_login) ' ' $cwd_color (prompt_pwd) $vcs_color (fish_vcs_prompt) $normal ' ' $prompt_status
echo -n -s $status_color $suffix ' ' $normal
end

View file

@ -1,19 +0,0 @@
function fish_right_prompt
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
__sf_util_set_default SPACEFISH_RPROMPT_ORDER ""
# ------------------------------------------------------------------------------
# Sections
# ------------------------------------------------------------------------------
[ -n "$SPACEFISH_RPROMPT_ORDER" ]; or return
for i in $SPACEFISH_RPROMPT_ORDER
eval __sf_section_$i
end
set_color normal
end

View file

@ -0,0 +1,35 @@
# Spicetify Marketplace
<p>
<a href="https://github.com/spicetify/spicetify-marketplace/releases/latest">
<img src="https://img.shields.io/github/v/release/spicetify/spicetify-marketplace?include_prereleases">
</a>
<a href="https://github.com/spicetify/spicetify-marketplace/releases">
<img src="https://img.shields.io/github/downloads/spicetify/spicetify-marketplace/total.svg">
</a>
<a href="https://github.com/spicetify/spicetify-marketplace/issues?q=is%3Aissue+is%3Aclosed">
<img src="https://img.shields.io/github/issues-closed/spicetify/spicetify-marketplace">
</a>
<a href="https://github.com/spicetify/spicetify-marketplace/commits/main">
<img src="https://img.shields.io/github/commit-activity/m/spicetify/spicetify-marketplace">
</a>
</p>
Customize your Spotify client directly from within [Spicetify](https://github.com/spicetify/spicetify-cli)!
Marketplace allows you to **browse, download, and install** extensions, themes, and CSS snippets with ease. You can also browse custom apps, but will need to do some manual installation to get them working.
Made with [Spicetify Creator](https://github.com/spicetify/spicetify-creator)
Head to the [wiki](https://github.com/spicetify/spicetify-marketplace/wiki) to get started!
---
## Links
- [Overview](https://github.com/spicetify/spicetify-marketplace/wiki)
- [Installation](https://github.com/spicetify/spicetify-marketplace/wiki/Installation)
- [Publishing to Marketplace](https://github.com/spicetify/spicetify-marketplace/wiki/Publishing-to-Marketplace)
- [Contributions](https://github.com/spicetify/spicetify-marketplace/wiki/Contributions)
- [Development](https://github.com/spicetify/spicetify-marketplace/wiki/Development)
- [Translating/Localizing Marketplace](https://github.com/spicetify/spicetify-marketplace/wiki/Localizing-Marketplace)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,9 @@
{
"name": "marketplace",
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 76.465 68.262\"><path d=\"M151.909 72.923v6.5h10.097l8.663 44.567h48.968v-6.5h-43.61l-1.2-6.172h42.974l10.35-33.91h-59.915l-.872-4.485H151.91zm17.59 10.984h49.867l-6.393 20.91h-39.409l-4.064-20.91zm5.626 44.11a6.5 6.5 0 0 0-6.5 6.5 6.5 6.5 0 0 0 6.5 6.501 6.5 6.5 0 0 0 6.5-6.5 6.5 6.5 0 0 0-6.5-6.5zm38.274 0a6.5 6.5 0 0 0-6.5 6.5 6.5 6.5 0 0 0 6.5 6.501 6.5 6.5 0 0 0 6.5-6.5 6.5 6.5 0 0 0-6.5-6.5z\" style=\"fill:currentColor;stroke-width:.264583\" transform=\"translate(-151.909 -72.923)\"/></svg>\n",
"active-icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 76.465 68.262\"><path d=\"M151.909 72.923v6.5h10.097l8.663 44.567h48.968v-6.5h-43.61l-1.2-6.172h42.974l10.35-33.91h-59.915l-.872-4.485H151.91zm23.216 55.095a6.5 6.5 0 0 0-6.5 6.5 6.5 6.5 0 0 0 6.5 6.5 6.5 6.5 0 0 0 6.5-6.5 6.5 6.5 0 0 0-6.5-6.5zm38.274 0a6.5 6.5 0 0 0-6.5 6.5 6.5 6.5 0 0 0 6.5 6.5 6.5 6.5 0 0 0 6.5-6.5 6.5 6.5 0 0 0-6.5-6.5z\" style=\"fill:currentColor;stroke-width:.264583\" transform=\"translate(-151.909 -72.923)\"/></svg>\n",
"subfiles": [],
"subfiles_extension": [
"extension.js"
]
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,46 @@
# Spicetify Stats
### A custom app that shows you your top artists, tracks, genres and an analysis of your whole library.
---
### Top Artists
![preview](previews/top_artists.png)
---
### Top Tracks
![preview](previews/top_tracks.png)
---
### Top Genres
![preview](previews/top_genres.png)
---
### Library Analysis
![preview](previews/library_analysis.png)
---
### Manual Installation
Download the files in the [dist branch](https://github.com/harbassan/spicetify-stats/archive/refs/heads/dist.zip) and rename the folder to `stats`, and then place that folder into your `CustomApps` folder in the spicetify directory.
Then run these commands to apply:
```powershell
spicetify config custom_apps stats
spicetify apply
```
---
If you have any questions or issues regarding the app open an issue on this repo. Please specify your spicetify version and installation method if you do so.
If you really like the app i'd be grateful if you liked the repo ❤️.

View file

@ -0,0 +1,10 @@
"use strict";
var stats = (() => {
// src/extensions/extension.tsx
(async () => {
while (!(Spicetify == null ? void 0 : Spicetify.LocalStorage)) {
await new Promise((resolve) => setTimeout(resolve, 100));
}
Spicetify.LocalStorage.set("stats:cache-info", JSON.stringify([0, 0, 0, 0]));
})();
})();

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,9 @@
{
"name": "Statistics",
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\"\r\n\t width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" style=\"fill:currentColor\" >\r\n<path d=\"M3,23L3,23c-0.55,0-1-0.45-1-1v-9c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v9C4,22.55,3.55,23,3,23z\"/>\r\n<path d=\"M9,23L9,23c-0.55,0-1-0.45-1-1V9c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v13C10,22.55,9.55,23,9,23z\"/>\r\n<path d=\"M15,23L15,23c-0.55,0-1-0.45-1-1V11c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v11C16,22.55,15.55,23,15,23z\"/>\r\n<path d=\"M21,23L21,23c-0.55,0-1-0.45-1-1V8c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v14C22,22.55,21.55,23,21,23z\"/>\r\n<path d=\"M22.86,1.5c-0.28-0.48-0.89-0.64-1.37-0.37l-6.54,3.74l-6-2.33C8.52,2.38,8.22,2.41,7.88,2.73L1.29,7.71\r\n\tC0.86,8.05,0.8,8.68,1.15,9.11s0.98,0.49,1.41,0.14l6.2-4.65l5.69,2.2C15,6.99,15.3,6.96,15.83,6.68l6.67-3.82\r\n\tC22.98,2.59,23.14,1.97,22.86,1.5z\"/>\r\n</svg>\r\n",
"active-icon": "<svg xmlns=\"http://www.w3.org/2000/svg\"\r\n\t width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" style=\"fill:currentColor\" >\r\n<path d=\"M3,23L3,23c-0.55,0-1-0.45-1-1v-9c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v9C4,22.55,3.55,23,3,23z\"/>\r\n<path d=\"M9,23L9,23c-0.55,0-1-0.45-1-1V9c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v13C10,22.55,9.55,23,9,23z\"/>\r\n<path d=\"M15,23L15,23c-0.55,0-1-0.45-1-1V11c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v11C16,22.55,15.55,23,15,23z\"/>\r\n<path d=\"M21,23L21,23c-0.55,0-1-0.45-1-1V8c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v14C22,22.55,21.55,23,21,23z\"/>\r\n<path d=\"M22.86,1.5c-0.28-0.48-0.89-0.64-1.37-0.37l-6.54,3.74l-6-2.33C8.52,2.38,8.22,2.41,7.88,2.73L1.29,7.71\r\n\tC0.86,8.05,0.8,8.68,1.15,9.11s0.98,0.49,1.41,0.14l6.2-4.65l5.69,2.2C15,6.99,15.3,6.96,15.83,6.68l6.67-3.82\r\n\tC22.98,2.59,23.14,1.97,22.86,1.5z\"/>\r\n</svg>\r\n",
"subfiles": [],
"subfiles_extension": [
"extension.js"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

View file

@ -0,0 +1,210 @@
/* ../../AppData/Local/Temp/tmp-19288-CUnNgMBeJddq/18888d8cb0d1/navBar.module.css */
.navBar-module__topBarHeaderItem___v29bR_stats {
-webkit-app-region: no-drag;
display: inline-block;
pointer-events: auto;
}
.navBar-module__topBarHeaderItemLink___VeyBY_stats {
margin: 0 8px 0 0;
}
.navBar-module__topBarActive___-qYPu_stats {
background-color: var(--spice-tab-active);
border-radius: 4px;
}
.navBar-module__topBarHeaderItemLink___VeyBY_stats {
border-radius: 4px;
color: var(--spice-text);
display: inline-block;
margin: 0 8px;
padding: 8px 16px;
position: relative;
text-decoration: none !important;
cursor: pointer;
}
.navBar-module__topBarNav___1OtdR_stats {
-webkit-app-region: drag;
pointer-events: none;
width: 100%;
}
.navBar-module__topBarHeaderItem___v29bR_stats .navBar-module__optionsMenuDropBox___tD9mA_stats {
color: var(--spice-text);
border: 0;
max-width: 150px;
height: 42px;
padding: 0 30px 0 12px;
background-color: initial;
cursor: pointer;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.navBar-module__topBarHeaderItem___v29bR_stats .navBar-module__optionsMenuDropBox___tD9mA_stats svg {
position: absolute;
margin-left: 8px;
}
div.navBar-module__topBarHeaderItemLink___VeyBY_stats {
padding: 0;
}
/* ../../AppData/Local/Temp/tmp-19288-CUnNgMBeJddq/18888d8c9df0/app.css */
.stats-grid {
--grid-gap: 24px;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stats-refreshButton {
width: 32px;
height: 32px;
}
.collection-searchBar-searchBar {
display: flex;
}
.stats-specialGrid {
grid-template-columns: repeat(11, 180px) !important;
}
.stats-gridInline {
--grid-gap: 24px;
grid-template-columns: repeat(10, 180px);
overflow-x: hidden;
scroll-behavior: smooth;
}
.stats-loadingWrapper {
display: flex;
justify-content: center;
align-items: center;
min-height: 75vh;
flex-direction: column;
gap: 16px;
}
.stats-libraryOverview {
display: flex;
gap: 24px;
align-items: center;
}
.stats-page {
display: flex;
flex-direction: column;
gap: 24px;
}
.stats-trackPageTitle {
display: flex;
gap: 24px;
align-items: center;
}
.stats-scrollButton {
width: 40px;
border-radius: 8px;
border: none;
padding: 0;
margin-right: 5px;
background-color: var(--spice-player);
color: var(--spice-subtext);
}
.stats-scrollButton:hover {
background-color: #282828;
}
.stats-createPlaylistButton {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
font-size: 0.8125rem;
font-weight: 700;
font-family: var(--font-family, CircularSp, CircularSp-Arab, CircularSp-Hebr, CircularSp-Cyrl, CircularSp-Grek, CircularSp-Deva, var(--fallback-fonts, sans-serif));
background-color: transparent;
border-radius: 500px;
cursor: pointer;
position: relative;
text-align: center;
text-decoration: none;
text-transform: none;
touch-action: manipulation;
transition-duration: 33ms;
transition-property:
background-color,
border-color,
color,
box-shadow,
filter,
transform;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
vertical-align: middle;
transform: translate3d(0px, 0px, 0px);
padding-block: 3px;
padding-inline: 15px;
border: 1px solid var(--essential-subdued, #878787);
color: var(--text-base, #000000);
min-block-size: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.stats-createPlaylistButton:hover {
transform: scale(1.04);
border-color: var(--essential-base, #000000);
}
.stats-header {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
-webkit-box-align: center;
-ms-flex-align: center;
align-content: space-between;
align-items: center;
color: var(--spice-text);
display: flex;
justify-content: space-between;
margin: 16px 0;
}
.stats-tracklistHeader > div {
display: flex;
-webkit-app-region: no-drag;
gap: 20px;
align-items: center;
}
.stats-genreCard {
display: flex;
flex-direction: column;
gap: 10px;
padding: 16px;
border-radius: 8px;
background: var(--spice-player);
position: relative;
}
.stats-genreRow {
width: 100%;
height: 20px;
display: flex;
gap: 10px;
}
.stats-genreRowFill {
background: var(--spice-button);
height: 100%;
border-radius: 8px;
display: flex;
align-items: center;
}
.stats-genreText {
color: var(--spice-player);
font-size: 0.875rem;
margin-left: 7px;
font-weight: bold;
}
.stats-genreValue {
color: var(--spice-text);
font-size: 0.875rem;
}
.stats-cardValue {
font-size: 2rem;
font-weight: bold;
color: var(--spice-text);
}
.stats-cardText {
color: var(--spice-text);
}
.new-update {
background-color: var(--spice-player);
color: var(--spice-text);
border-radius: 8px;
padding: 2px 12px;
margin: 0 24px;
border: 0px;
}

View file

@ -1,406 +0,0 @@
[Comfy]
text = FFFFFF
subtext = B9BBBE
main = 23283D
main-transition = 1E2233
highlight = 45495b
highlight-elevated = 32364a
sidebar = 1E2233
player = 101320
card = 191F2E
shadow = 1E2233
selected-row = F1F1F1
button = 7289DA
button-active = 5C6FB1
button-disabled = 4B588C
tab-active = 1E2233
notification = 7289DA
notification-error = d25050
misc = 000000
play-button = 7289da
play-button-active = 869adf
progress-fg = 1ed760
progress-bg = 7289da
heart = d25050
liked-left = 3a62f5
liked-right = c4efd9
pagelink-active = 5c6eb1
radio-btn-active = 7289DA
[Nord]
text = B2BCCC
subtext = B2BCCC
main = 2E3440
main-transition = 262B35
highlight = 50555f
highlight-elevated = 3d424d
sidebar = 262B35
player = 363d4c
card = 363d4c
shadow = 1d2128
button = 8A99AF
button-active = 718CAD
button-disabled = 434C5E
tab-active = 363d4c
notification = 363d4c
notification-error = A9555E
misc = FFFFFF
play-button = 8A99AF
play-button-active = 718CAD
progress-fg = 8A99AF
progress-bg = 4b566a
heart = 718CAD
liked-left = 262B35
liked-right = B2BCCC
pagelink-active = b7c1d5
radio-btn-active = 363d4c
[Lunar]
text = f3f3f3
subtext = cecece
main = 161616
main-transition = 101010
highlight = 2a2a2a
highlight-elevated = 232323
sidebar = 202020
player = 202020
card = 202020
shadow = 252525
selected-row = cecece
button = 3281ea
button-active = 0284e8
button-disabled = 303030
tab-active = ebbcba
notification = 3281ea
notification-error = b10c0c
misc = 252525
play-button = ebbcba
play-button-active = eba9a7
progress-fg = 025ca1
progress-bg = 202020
heart = ebbcba
liked-left = 3a62f5
liked-right = c4efd9
pagelink-active = ffffff
radio-btn-active = 0284e8
[catppuccin-dark]
text = cad3f5
subtext = b8c0e0
main = 181926
main-transition = 181926
highlight = 333645
highlight-elevated = 232533
sidebar = 24273a
player = 24273a
card = 494d64
shadow = 5b6078
selected-row = b8c0e0
button = 8aadf4
button-active = 7dc4e4
button-disabled = 494d64
tab-active = ed8796
notification = 8aadf4
notification-error = ed8796
misc = 5b6078
play-button = f5bde6
play-button-active = f0c6c6
progress-fg = 91d7e3
progress-bg = 494d64
heart = f5a97f
liked-left = a6da95
liked-right = b7bdf8
pagelink-active = ffffff
radio-btn-active = 7dc4e4
[catppuccin-light]
text = cad3f5
subtext = b8c0e0
main = 494d64
main-transition = 181926
highlight = 5c6179
highlight-elevated = 545a71
sidebar = 24273a
player = 24273a
card = 494d64
shadow = 5b6078
selected-row = b8c0e0
button = 8aadf4
button-active = 7dc4e4
button-disabled = 494d64
tab-active = ed8796
notification = 8aadf4
notification-error = ed8796
misc = 5b6078
play-button = f5bde6
play-button-active = f0c6c6
progress-fg = 91d7e3
progress-bg = 494d64
heart = f5a97f
liked-left = a6da95
liked-right = b7bdf8
pagelink-active = ffffff
radio-btn-active = 7dc4e4
[Mono]
text = FFFFFF
subtext = B9BBBE
main = 171717
main-transition = FFFFFF
highlight = 3b3b3b
highlight-elevated = 262626
sidebar = 101010
player = 101010
card = 343434
shadow = 595858
selected-row = F1F1F1
button = FFFFFF
button-active = c5c5c5
button-disabled = 4a4949
tab-active = 303030
notification = 101010
notification-error = d25050
misc = 000000
play-button = FFFFFF
play-button-active = FFFFFF
progress-fg = FFFFFF
progress-bg = 343434
heart = FFFFFF
liked-left = 000000
liked-right = ffffff
pagelink-active = 787878
radio-btn-active = 737373
[Deep]
text = 4f9a87
subtext = 406560
button-text = 4f9a87
main = 040614
main-transition = 0F111A
highlight = 0f1f28
highlight-elevated = 09111d
sidebar = 0F111A
player = 0F111A
subbutton-text = 040614
card = 0f1118
shadow = 0f1118
selected-row = 4f9a87
sub-button = 4f9a87
button = 106165
button-active = 4f9a87
button-disabled = 0C1C19
tab-active = 0a1527
notification = 051024
notification-error = 051024
playback-bar = 4f9a87
misc = 406560
play-button = 106165
play-button-active = 4f9a87
progress-fg = 4f9a87
progress-bg = 106165
heart = d25050
liked-left = 3a62f5
liked-right = c4efd9
pagelink-active = 4f9a87
radio-btn-active = 4f9a87
[Sunset]
text = ffce3f
subtext = fef3bb
main = 171717
main-transition = 000000
highlight = 3d3c32
highlight-elevated = 272722
sidebar = 101010
player = 101010
card = cc9756
shadow = e3b47b
selected-row = fef3bb
button = ffce3f
button-active = bf9b30
button-disabled = 4a4949
tab-active = 303030
notification = ffffff
notification-error = d25050
misc = 000000
play-button = ffce3f
play-button-active = fc9e3a
progress-fg = ff8300
progress-bg = 343434
heart = ff8300
liked-left = 000000
liked-right = ffffff
pagelink-active = fef3bb
radio-btn-active = fef3bb
[Neon]
text = 588bae
subtext = eaffff
main = 171717
main-transition = 000000
highlight = 3b3b3b
highlight-elevated = 262626
sidebar = 101010
player = 101010
card = 7fa1b5
shadow = a9c9db
selected-row = F1F1F1
button = 588bae
button-active = 3b5d75
button-disabled = 4a4949
tab-active = 303030
notification = FFFFFF
notification-error = d25050
misc = 000000
play-button = 588bae
play-button-active = 5085ab
progress-fg = 00afdb
progress-bg = 343434
heart = 00afdb
liked-left = 000000
liked-right = ffffff
pagelink-active = bbe7fe
radio-btn-active = eaffff
[Forest]
text = B2C5B3
subtext = d5ddde
main = 171717
main-transition = 000000
highlight = 3b3b3b
highlight-elevated = 262626
sidebar = 101010
player = 101010
card = 5c6e59
shadow = 3c5148
selected-row = F1F1F1
button = B2C5B3
button-active = F1F1F1
button-disabled = 4a4949
tab-active = 303030
notification = FFFFFF
notification-error = d25050
misc = 000000
play-button = 3c5148
play-button-active = 43705d
progress-fg = 3c5148
progress-bg = 343434
heart = 3c5148
liked-left = 000000
liked-right = ffffff
pagelink-active = 3c5148
radio-btn-active = 737373
[Sakura]
text = fcb4ca
subtext = ffdcdc
main = 171717
main-transition = 000000
highlight = 3d3838
highlight-elevated = 272525
sidebar = 101010
player = 101010
card = d68ba2
shadow = fcb4ca
selected-row = ffdcdc
button = fcb4ca
button-active = d48aa0
button-disabled = 4a4949
tab-active = 303030
notification = FFFFFF
notification-error = d25050
misc = 000000
play-button = f42c38
play-button-active = ba182b
progress-fg = Cfeefa
progress-bg = 343434
heart = f25477
liked-left = 000000
liked-right = ffffff
pagelink-active = f5bcdb
radio-btn-active = ffdcdc
[Vaporwave]
text = 01CDFE
subtext = eaffff
main = 171717
main-transition = 000000
highlight = 3b3b3b
highlight-elevated = 262626
sidebar = 101010
player = 101010
card = 007f9e
shadow = 2ec2e6
selected-row = F1F1F1
button = 01CDFE
button-active = 118ba8
button-disabled = 4a4949
tab-active = 303030
notification = FFFFFF
notification-error = d25050
misc = 000000
play-button = ffd300
play-button-active = e3c01b
progress-fg = f706cf
progress-bg = 343434
heart = f706cf
liked-left = 000000
liked-right = ffffff
pagelink-active = c0d6fa
radio-btn-active = eaffff
[Velvet]
text = AD434E
subtext = 762F37
main = 1E1E1E
main-transition = 161616
highlight = 322324
highlight-elevated = 272021
sidebar = 161616
player = 080808
card = 0F0F0F
shadow = 161616
selected-row = 973B45
button = 6B2B32
button-active = 552328
button-disabled = 262626
tab-active = 161616
notification = 6B2B32
notification-error = 60272D
misc = 000000
play-button = 552328
play-button-active = 6B2B32
progress-fg = 81333B
progress-bg = A23F49
heart = 60272D
liked-left = 2D2D2D
liked-right = 8C3740
pagelink-active = 4A1F23
radio-btn-active = 6B2B32
[wal16]
text = ${xrdb:color15:FFFFFF}
subtext = ${xrdb:color6:B9BBBE}
main = ${xrdb:color0:23283D}
main-transition = ${xrdb:color0:000000}
sidebar = ${xrdb:color8:1E2233}
player = ${xrdb:color4:101320}
card = ${xrdb:color8:191F2E}
shadow = ${xrdb:color0:1E2233}
selected-row = ${xrdb:color15:F1F1F1}
button = ${xrdb:color6:7289DA}
button-active = ${xrdb:color14:5C6FB1}
button-disabled = ${xrdb:color8:4B588C}
tab-active = ${xrdb:color9:1E2233}
notification = FFFFFF
notification-error = d25050
misc = ${xrdb:color0:000000}
play-button = ${xrdb:color11:5C6FB1}
play-button-active = ${xrdb:color3:7289DA}
progress-fg = ${xrdb:color10:1ed760}
progress-bg = ${xrdb:color0:f1f1f1}
heart = ${xrdb:color10:d25050}
liked-left = ${xrdb:color10:3a62f5}
liked-right = ${xrdb:color11:c4efd9}
pagelink-active = ${xrdb:color13:5c6eb1}
radio-btn-active = ${xrdb:color13:7289DA}

View file

@ -1,9 +0,0 @@
(() => {
const themeScript = document.createElement("SCRIPT");
themeScript.setAttribute("type", "text/javascript");
themeScript.setAttribute(
"src",
"https://comfy-themes.github.io/Spicetify/Comfy/theme.script.js"
);
document.head.appendChild(themeScript);
})();

View file

@ -1 +0,0 @@
@import url("https://comfy-themes.github.io/Spicetify/Comfy/app.css");

View file

@ -18,9 +18,9 @@ custom_apps = lyrics-plus|marketplace
spotify_path = /opt/spotify
color_scheme = Comfy
overwrite_assets = 1
spotify_launch_flags =
spotify_launch_flags =
check_spicetify_upgrade = 0
prefs_path = ~/.config/spotify/prefs
prefs_path = /home/matt/.config/spotify/prefs
current_theme = Comfy
inject_css = 1
replace_colors = 1

149
.config/starship.toml Normal file
View file

@ -0,0 +1,149 @@
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = true
# Replace the '' symbol in the prompt with '➜'
[character] # The name of the module we are configuring is 'character'
success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
[aws]
symbol = " "
[buf]
symbol = " "
[c]
symbol = " "
[conda]
symbol = " "
[dart]
symbol = " "
[directory]
read_only = " 󰌾"
[docker_context]
symbol = " "
[elixir]
symbol = " "
[elm]
symbol = " "
[fossil_branch]
symbol = " "
[git_branch]
symbol = " "
[golang]
symbol = " "
[guix_shell]
symbol = " "
[haskell]
symbol = " "
[haxe]
symbol = "⌘ "
[hg_branch]
symbol = " "
[hostname]
ssh_symbol = " "
[java]
symbol = " "
[julia]
symbol = " "
[lua]
symbol = " "
[memory_usage]
symbol = "󰍛 "
[meson]
symbol = "󰔷 "
[nim]
symbol = "󰆥 "
[nix_shell]
symbol = " "
[nodejs]
symbol = " "
[os.symbols]
Alpaquita = " "
Alpine = " "
Amazon = " "
Android = " "
Arch = " "
Artix = " "
CentOS = " "
Debian = " "
DragonFly = " "
Emscripten = " "
EndeavourOS = " "
Fedora = " "
FreeBSD = " "
Garuda = "󰛓 "
Gentoo = " "
HardenedBSD = "󰞌 "
Illumos = "󰈸 "
Linux = " "
Mabox = " "
Macos = " "
Manjaro = " "
Mariner = " "
MidnightBSD = " "
Mint = " "
NetBSD = " "
NixOS = " "
OpenBSD = "󰈺 "
openSUSE = " "
OracleLinux = "󰌷 "
Pop = " "
Raspbian = " "
Redhat = " "
RedHatEnterprise = " "
Redox = "󰀘 "
Solus = "󰠳 "
SUSE = " "
Ubuntu = " "
Unknown = " "
Windows = "󰍲 "
[package]
symbol = "󰏗 "
[pijul_channel]
symbol = "🪺 "
[python]
symbol = " "
[rlang]
symbol = "󰟔 "
[ruby]
symbol = " "
[rust]
symbol = " "
[scala]
symbol = " "
[spack]
symbol = "🅢 "

3249
.config/xplr/init.lua Normal file

File diff suppressed because it is too large Load diff

@ -0,0 +1 @@
Subproject commit 66ccf983fab7f67d6b00adc0365a2b26550e7f81

@ -0,0 +1 @@
Subproject commit 2c4106c1cc882ac3f832b77a3c72fdce83e17d72

@ -0,0 +1 @@
Subproject commit f70b267e90ee2c6b210b5b476ec19ea29b220214

@ -0,0 +1 @@
Subproject commit 6133ea79c41629591c72fa4c51132f7a3cb30782

@ -0,0 +1 @@
Subproject commit f83a7ed58a7212771b15fbf1fdfb0a07b23c81e9

@ -0,0 +1 @@
Subproject commit ad2b8e685f05a5a3fcc9e12f8992836803ddcb76

@ -0,0 +1 @@
Subproject commit d90c65eb2bdd182f09db2db8969a99666f90c78b

@ -0,0 +1 @@
Subproject commit a3ffc87460c5c7f560bffea689487ae14b36d9c3

@ -0,0 +1 @@
Subproject commit 4e3d3e5a16e2b9422d8f714018f0ed2dca90c195

@ -0,0 +1 @@
Subproject commit e50fd35db5c05e750a74c8f54761922464c1ad5f

File diff suppressed because one or more lines are too long

9
.zshrc
View file

@ -128,13 +128,18 @@ alias yayupdate='yay -Syu'
alias search='pacseek'
alias gpt='tgpt'
alias clock='tty-clock -sbc'
alias l='xplr'
alias files='xplr'
alias sysproc='sysz'
alias cat='bat'
alias dots='yadm enter lazygit'
alias audiorestart='systemctl --user restart wireplumber pipewire pipewire-pulse'
alias info='tldr'
alias cd='z'
alias disks='duf'
alias cdh='zi'
PATH=$PATH:/home/matt/.local/bin
TERMINAL=$TERMINAL:/usr/bin/kitty
export EDITOR=codium
neofetch
neofetch