59 lines
1.2 KiB
Fish
59 lines
1.2 KiB
Fish
if test -f /home/linuxbrew/.linuxbrew/bin/brew
|
|
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
|
end
|
|
|
|
if status is-interactive
|
|
# Commands to run in interactive sessions can go here
|
|
fastfetch
|
|
end
|
|
|
|
# Configure GPG
|
|
set -x GPG_TTY $(tty)
|
|
# Disable fish greeting
|
|
set -x fish_greeting ""
|
|
# Disable brew hints
|
|
set -x HOMEBREW_NO_ENV_HINTS 1
|
|
# Set Starship Configuration
|
|
set -x STARSHIP_CONFIG $HOME/.config/starship/starship.toml
|
|
# Set default kubectl editor
|
|
set -x KUBE_EDITOR nvim
|
|
|
|
if not set -q SSH_AUTH_SOCK
|
|
eval (ssh-agent -c) >/dev/null
|
|
end
|
|
|
|
# Docker
|
|
alias dc="docker compose"
|
|
alias dl="docker logs"
|
|
alias de="docker exec"
|
|
alias dps="docker ps --format 'table {{.Names}}\t{{printf \"%-20s\" .Status}}'"
|
|
|
|
# Kubernetes
|
|
alias k kubectl
|
|
alias kn "kubectl config set-context --current --namespace"
|
|
|
|
# Enable zoxide
|
|
zoxide init fish | source
|
|
|
|
# Improve utilities
|
|
alias rm "trash -v"
|
|
alias ll "eza -l --icons --git --group-directories-first"
|
|
alias ls eza
|
|
|
|
# Enable direnv
|
|
direnv hook fish | source
|
|
|
|
for f in ~/.config/fish/functions/user/*.fish
|
|
source $f
|
|
end
|
|
|
|
for f in ~/.config/fish/completions/user/*.fish
|
|
source $f
|
|
end
|
|
|
|
# Enable starship
|
|
starship init fish | source
|
|
|
|
# Configure keybindings for fzf
|
|
fzf_configure_bindings --variables=\e\cv
|