mirror of
https://git.sr.ht/~danbarber/dotfiles
synced 2025-03-04 08:59:18 +00:00
Add fish config
This commit is contained in:
parent
1b46d7fb9e
commit
e2637b2ea2
41
dot_config/fish/aliases.fish
Normal file
41
dot_config/fish/aliases.fish
Normal 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"
|
||||||
1
dot_config/fish/completions/symlink_docker.fish
Normal file
1
dot_config/fish/completions/symlink_docker.fish
Normal file
@ -0,0 +1 @@
|
|||||||
|
/Applications/OrbStack.app/Contents/MacOS/../Resources/completions/docker.fish
|
||||||
1
dot_config/fish/completions/symlink_kubectl.fish
Normal file
1
dot_config/fish/completions/symlink_kubectl.fish
Normal file
@ -0,0 +1 @@
|
|||||||
|
/Applications/OrbStack.app/Contents/MacOS/../Resources/completions/kubectl.fish
|
||||||
0
dot_config/fish/conf.d/.keep
Normal file
0
dot_config/fish/conf.d/.keep
Normal file
13
dot_config/fish/config.fish
Normal file
13
dot_config/fish/config.fish
Normal 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
|
||||||
31
dot_config/fish/fish_variables
Normal file
31
dot_config/fish/fish_variables
Normal 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
|
||||||
0
dot_config/fish/functions/.keep
Normal file
0
dot_config/fish/functions/.keep
Normal file
Loading…
Reference in New Issue
Block a user