···11-complete -c sync_backup_dotfiles -f
22-33-complete -c sync_backup_dotfiles -s h -l help -d 'Display Help ๏ญ๎ฐ'
44-complete -c sync_backup_dotfiles -s d -l dir -d 'Change directory to backup files after sync'
···11-# ๏ Git ๎ https://git-scm.com/downloads/linux
22-# ๏ Homebrew ๎ฝ $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
33-# ๏ Fish Shell ๎น $ brew install fish
44-# ๏ GHQ $ brew install ghq
55-function basic_custom_setup
66- # Homebrew Software --------------------------------------------------------
77- set ensure_installed_homebrew \
88- ast-grep \
99- bat \
1010- difftastic \
1111- direnv \
1212- docker \
1313- eza \
1414- fd \
1515- fish \
1616- fish-lsp \
1717- fzf \
1818- gcc \
1919- gh \
2020- ghq \
2121- gleam \
2222- go \
2323- httpie \
2424- jj \
2525- just \
2626- lazydocker \
2727- lazygit \
2828- lua \
2929- luarocks \
3030- make \
3131- node \
3232- nvim \
3333- pipx \
3434- presenterm \
3535- prettybat \
3636- rg \
3737- sqlfluff \
3838- sqlite3 \
3939- tmux \
4040- trash-cli \
4141- tree \
4242- tree-sitter \
4343- tree-sitter-cli \
4444- watchexec \
4545- yazi \
4646- zig \
4747- zoxide
4848-4949- # Install missing homebrew formulaes
5050- for formulae in $ensure_installed_homebrew
5151- if not type -q $formulae
5252- brew install -q $formulae
5353- end
5454- end
5555-5656- # Verify bat-extras installation -------------------------------------------
5757- set bat_extras_list \
5858- batdiff \
5959- batgrep \
6060- batman \
6161- batpipe \
6262- batwatch
6363-6464- # Install missing bat-extras formulaes
6565- for bat_extra in $bat_extras_list
6666- if not type -q $bat_extra
6767- brew install -q bat-extras
6868- end
6969- end
7070-7171- # Verify fisher installation -----------------------------------------------
7272- if not type -q fisher
7373- curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
7474- end
7575-7676- # Fisher Plugins
7777- set -l ensure_installed_fisher \
7878- jorgebucaran/fisher \
7979- jethrokuan/z \
8080- decors/fish-ghq \
8181- catppuccin/fish \
8282- decors/fish-colored-man \
8383- patrickf1/fzf.fish \
8484- jorgebucaran/autopair.fish
8585-8686- # Install missing fisher plugins
8787- for fisher_plugin in $ensure_installed_fisher
8888- if not contains $fisher_plugin (cat $__fish_config_dir/fish_plugins)
8989- fisher install $fisher_plugin
9090- end
9191- end
9292-9393-end
-18
.config/fish/functions/fish_prompt.fish
···11-function fish_prompt --description "Customize your prompt ๎ช "
22- set -l icon "๏ "
33- set -l working_directory (set_color green) (prompt_pwd) (set_color normal)
44-55- if test -e "build.zig"
66- set icon (set_color yellow) "๎ฉ " (set_color normal)
77- else if test -e "deno.json"
88- set icon (set_color green) "๎ " (set_color normal)
99- else if test -e "gleam.toml"
1010- set icon (set_color magenta) "๏ " (set_color normal)
1111- else if test -e "package.json"
1212- set icon (set_color green) "๎ด " (set_color normal)
1313- else if test -e "pyproject.toml"
1414- set icon (set_color yellow) "๎ " (set_color normal)
1515- end
1616-1717- echo -ns $icon $working_directory " ๏ "
1818-end
-13
.config/fish/functions/fish_right_prompt.fish
···11-function fish_right_prompt
22- set -l vcs_color normal
33-44- if command -q jj && test -e ".jj"
55- set vcs_color blue
66- set icon (set_color $vcs_color) "๓ฑ" (set_color normal)
77- else if command -q git && test -e ".git"
88- set vcs_color red
99- set icon (set_color $vcs_color) "๎" (set_color normal)
1010- end
1111-1212- echo -ns $icon (set_color $vcs_color) (fish_git_prompt) (set_color normal)
1313-end
···11-local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
22-if not (vim.uv or vim.loop).fs_stat(lazypath) then
33- local lazyrepo = "https://github.com/folke/lazy.nvim.git"
44- local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
55- if vim.v.shell_error ~= 0 then
66- vim.api.nvim_echo({
77- { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
88- { out, "WarningMsg" },
99- { "\nPress any key to exit..." },
1010- }, true, {})
1111- vim.fn.getchar()
1212- os.exit(1)
1313- end
1414-end
1515-1616-vim.opt.rtp:prepend(lazypath)
1717-1818-require("lazy").setup({
1919- spec = {
2020- -- add LazyVim and import its plugins
2121- { "LazyVim/LazyVim", import = "lazyvim.plugins", opts = { colorscheme = "catppuccin" } },
2222- -- import/override with your plugins
2323- { import = "plugins" },
2424- },
2525- defaults = {
2626- -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
2727- -- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
2828- lazy = false,
2929- -- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
3030- -- have outdated releases, which may break your Neovim install.
3131- version = false, -- always use the latest git commit
3232- -- version = "*", -- try installing the latest stable version for plugins that support semver
3333- },
3434- install = { colorscheme = { "tokyonight", "habamax" } },
3535- checker = {
3636- enabled = true, -- check for plugin updates periodically
3737- notify = false, -- notify on update
3838- }, -- automatically check for plugin updates
3939- performance = {
4040- rtp = {
4141- -- disable some rtp plugins
4242- disabled_plugins = {
4343- "gzip",
4444- -- "matchit",
4545- -- "matchparen",
4646- -- "netrwPlugin",
4747- "tarPlugin",
4848- "tohtml",
4949- "tutor",
5050- "zipPlugin",
5151- },
5252- },
5353- },
5454-})