Add fish config

This commit is contained in:
Daniel Barber 2025-01-31 16:22:14 -06:00
parent 1b46d7fb9e
commit e2637b2ea2
7 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,41 @@
# Unix
alias ll="ls -al"
alias ln="ln -v"
alias mkdir="mkdir -p"
alias e="$EDITOR"
# Bundler
alias b="bundle"
# Rails
alias migrate="bin/rails db:migrate db:rollback && bin/rails db:migrate db:test:prepare"
alias s="rspec"
# Easier navigation: ..., ...., ....., and -
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# git
alias pullate="git pull"
alias pushate="git push"
alias fetchate="git fetch"
alias rebasate="git rebase"
alias ts="tig status"
# vim
alias v="neovide --fork --no-tabs"
# Bundler
alias be="bundle exec"
alias fuckit="git reset HEAD --hard"
alias httpserver="ruby -run -e httpd"
# Shell
alias sanify="stty sane"
alias ip="curl canhasip.com"

View File

@ -0,0 +1 @@
/Applications/OrbStack.app/Contents/MacOS/../Resources/completions/docker.fish

View File

@ -0,0 +1 @@
/Applications/OrbStack.app/Contents/MacOS/../Resources/completions/kubectl.fish

View File

View File

@ -0,0 +1,13 @@
if status is-interactive
# Commands to run in interactive sessions can go here
end
export EDITOR=nvim
/opt/homebrew/bin/brew shellenv | source
source ~/.config/fish/aliases.fish
zoxide init fish | source
starship init fish | source

View File

@ -0,0 +1,31 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3800
SETUVAR fish_color_autosuggestion:brblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:blue
SETUVAR fish_color_comment:red
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:green
SETUVAR fish_color_error:brred
SETUVAR fish_color_escape:brcyan
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:brcyan
SETUVAR fish_color_param:cyan
SETUVAR fish_color_quote:yellow
SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
SETUVAR fish_color_search_match:white\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:yellow\x1e\x2di
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr

View File