feat: remade scripts to be simpler

This commit is contained in:
2026-03-28 22:26:19 +00:00
commit a39315d77c
24 changed files with 879 additions and 0 deletions
+72
View File
@@ -0,0 +1,72 @@
console_title_template = '{{ .Shell }} in {{ .Folder }}'
version = 3
final_space = true
[secondary_prompt]
template = '❯❯ '
foreground = 'magenta'
background = 'transparent'
[transient_prompt]
template = ' '
background = 'transparent'
foreground_templates = ['{{if gt .Code 0}}red{{end}}', '{{if eq .Code 0}}magenta{{end}}']
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
template = '{{ .Path }}'
foreground = 'blue'
background = 'transparent'
type = 'path'
style = 'plain'
[blocks.segments.properties]
cache_duration = 'none'
style = 'full'
[[blocks.segments]]
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
foreground = 'p:grey'
background = 'transparent'
type = 'git'
style = 'plain'
[blocks.segments.properties]
branch_icon = ''
cache_duration = 'none'
commit_icon = '@'
fetch_status = true
[[blocks]]
type = 'rprompt'
overflow = 'hidden'
[[blocks.segments]]
template = '{{ .FormattedMs }}'
foreground = 'yellow'
background = 'transparent'
type = 'executiontime'
style = 'plain'
[blocks.segments.properties]
cache_duration = 'none'
threshold = 5000
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
template = ''
background = 'transparent'
type = 'text'
style = 'plain'
foreground_templates = ['{{if gt .Code 0}}red{{end}}', '{{if eq .Code 0}}magenta{{end}}']
[blocks.segments.properties]
cache_duration = 'none'
+43
View File
@@ -0,0 +1,43 @@
# Reload tmux configuration
unbind r
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Tmux config reloaded!"
# Set prefix key to Ctrl-s
set -g prefix C-s
# Enable mouse support
set -g mouse on
# Set index starting at 1 for windows and panes
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# Remap pane navigation to vim-style keys
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Set split binds
bind v split-window -h
bind h split-window -v
bind n new-window
bind q kill-pane
set-option -g status-position top
#* TMUX Plugin Manager Configuration
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
+21
View File
@@ -0,0 +1,21 @@
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
{
"context": "Workspace",
"bindings": {
// "shift shift": "file_finder::Toggle"
}
},
{
"context": "Editor",
"bindings": {
// "j k": ["workspace::SendKeystrokes", "escape"]
}
}
]
+35
View File
@@ -0,0 +1,35 @@
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"icon_theme": "Catppuccin Mocha",
"agent": {
"always_allow_tool_actions": true,
"default_profile": "write",
"default_model": {
"provider": "zed.dev",
"model": "claude-3-7-sonnet"
},
},
"telemetry": {
"metrics": false,
"diagnostics": false
},
"vim_mode": false,
"ui_font_size": 14,
"buffer_font_size": 14,
"theme": {
"mode": "system",
"light": "One Light",
"dark": "Min Dark (Blurred)"
},
"hover_popover_enabled": true,
"features": {
"edit_prediction_provider": "zed"
}
}
@@ -0,0 +1,35 @@
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"icon_theme": "Catppuccin Mocha",
"agent": {
"default_profile": "write",
"default_model": {
"provider": "zed.dev",
"model": "claude-sonnet-4"
},
"version": "2"
},
"telemetry": {
"metrics": false,
"diagnostics": false
},
"vim_mode": false,
"ui_font_size": 14,
"buffer_font_size": 14,
"theme": {
"mode": "system",
"light": "One Light",
"dark": "Min Dark (Blurred)"
},
"hover_popover_enabled": true,
"features": {
"edit_prediction_provider": "zed"
}
}
+70
View File
@@ -0,0 +1,70 @@
fastfetch
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
if [ ! -d "$ZINIT_HOME" ]; then
mkdir -p "$(dirname "$ZINIT_HOME")"
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
fi
source "${ZINIT_HOME}/zinit.zsh"
# User configuration
#Path
[ -f "$HOME/.zprofile" ] && source "$HOME/.zprofile"
# Aliases
[ -f "$HOME/.common_aliases" ] && source "$HOME/.common_aliases"
[ -f "$HOME/.os_aliases" ] && source "$HOME/.os_aliases"
# Zsh Plugins
zinit light zsh-users/zsh-autosuggestions
zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-syntax-highlighting
zinit light Aloxaf/fzf-tab
#Add in snippets
zinit snippet OMZP::git
zinit snippet OMZP::sudo
zinit snippet OMZP::command-not-found
# Initialize compinit for completions
autoload -U compinit && compinit
zinit cdreplay -q
#History Config
HISTSIZE=5000
HISTFILE=~/.zsh_history
SAVEHIST=$HISTSIZE
HISTDUP=erase
setopt appendhistory
setopt sharehistory
setopt hist_ignore_space
setopt hist_save_no_dups
setopt hist_ignore_dups
setopt hist_find_no_dups
#Completion Styling
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*' menu no
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
#Conda Config
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/fernandovideira/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/fernandovideira/miniforge3/etc/profile.d/conda.sh" ]; then
. "/Users/fernandovideira/miniforge3/etc/profile.d/conda.sh"
else
export PATH="/Users/fernandovideira/miniforge3/bin:$PATH"
fi
fi
unset __conda_setup
eval "$(direnv hook zsh)"
eval "$(fzf --zsh)"
eval "$(zoxide init zsh --cmd cd)"