add fish and starship to dotfile repo
This commit is contained in:
1
fish/conf.d/00-vault.fish
Normal file
1
fish/conf.d/00-vault.fish
Normal file
@@ -0,0 +1 @@
|
||||
set -x VAULT_ADDR 'https://vault.chaos.sh:443'
|
||||
2
fish/conf.d/10-cloudflare.fish
Normal file
2
fish/conf.d/10-cloudflare.fish
Normal file
@@ -0,0 +1,2 @@
|
||||
set -x CF_API_EMAIL cloudflare@basicchaos.de
|
||||
set -x CF_API_KEY $(vault kv get -field apikey services/cloudflare)
|
||||
9
fish/conf.d/20-cargo.fish
Normal file
9
fish/conf.d/20-cargo.fish
Normal file
@@ -0,0 +1,9 @@
|
||||
set -x CARGO_MOMMYS_MOODS chill/thirsty
|
||||
set -x CARGO_MOMMYS_PRONOUNS her/pups/their/faer
|
||||
set -x CARGO_MOMMYS_ROLES honeybee
|
||||
set -x CARGO_MOMMYS_LITTLE kitten/fae/girl
|
||||
set -x CARGO_MOMMYS_ACTUAL sudo
|
||||
|
||||
function sudo --wraps /usr/bin/sudo
|
||||
cargo-mommy $argv
|
||||
end
|
||||
16
fish/conf.d/30-pacman.fish
Normal file
16
fish/conf.d/30-pacman.fish
Normal file
@@ -0,0 +1,16 @@
|
||||
set -u PACMAN paru
|
||||
function update
|
||||
$PACMAN -Syu
|
||||
end
|
||||
|
||||
function remove --wraps "$PACMAN -Rcsnu"
|
||||
$PACMAN -Rscnu $argv
|
||||
end
|
||||
|
||||
function search --wraps "$PACMAN -Ss"
|
||||
$PACMAN -Ss $argv
|
||||
end
|
||||
|
||||
function install --wraps "$PACMAN -Sy"
|
||||
$PACMAN -Sy $argv
|
||||
end
|
||||
43
fish/conf.d/98-basic-aliases.fish
Normal file
43
fish/conf.d/98-basic-aliases.fish
Normal file
@@ -0,0 +1,43 @@
|
||||
# tool aliases
|
||||
function irc
|
||||
mosh -p 60561:60565 arsenalgear -- tmux attach -t irc
|
||||
end
|
||||
|
||||
function last_history_item
|
||||
echo $history[1]
|
||||
end
|
||||
abbr -a !! --position anywhere --function last_history_item
|
||||
|
||||
function htop
|
||||
/usr/bin/btop
|
||||
end
|
||||
|
||||
function vim
|
||||
/usr/bin/nvim $argv
|
||||
end
|
||||
|
||||
function vim
|
||||
/usr/bin/nvim $argv
|
||||
end
|
||||
|
||||
function pass --wraps gopass
|
||||
gopass
|
||||
end
|
||||
|
||||
# *ctl aliases
|
||||
function sc --wraps "sudo systemctl"
|
||||
sudo systemctl
|
||||
end
|
||||
|
||||
function scu --wraps "systemctl --user"
|
||||
systemctl --user
|
||||
end
|
||||
|
||||
# ansible related aliases
|
||||
function anp
|
||||
ansible-playbook
|
||||
end
|
||||
|
||||
function anv
|
||||
ansible-vault
|
||||
end
|
||||
8
fish/conf.d/99-basic-exports.fish
Normal file
8
fish/conf.d/99-basic-exports.fish
Normal file
@@ -0,0 +1,8 @@
|
||||
set -x TERM xterm-256color
|
||||
set -x VISUAL /usr/bin/nvim
|
||||
set -x EDITOR $VISUAL
|
||||
set -x BROWSER firefox
|
||||
set -x SSH_AUTH_SOCK "$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||
|
||||
set -x GOPATH $HOME/build/go
|
||||
set -x PATH $GOPATH/bin:$HOME/.cargo/bin:$HOME/.local/bin:/usr/local/bin:$PATH
|
||||
13
fish/config.fish
Normal file
13
fish/config.fish
Normal file
@@ -0,0 +1,13 @@
|
||||
set fish_greeting
|
||||
|
||||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
end
|
||||
|
||||
# Keybindings to make my life easier
|
||||
bind --user ctrl-enter accept-autosuggestion
|
||||
bind --user ctrl-space forward-char
|
||||
|
||||
starship init fish | source
|
||||
direnv hook fish | source
|
||||
zoxide init fish --cmd cd | source
|
||||
42
fish/fish_variables
Normal file
42
fish/fish_variables
Normal file
@@ -0,0 +1,42 @@
|
||||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:3800
|
||||
SETUVAR fish_color_autosuggestion:brblack
|
||||
SETUVAR fish_color_cancel:\x2d\x2dreverse
|
||||
SETUVAR fish_color_command:5fd700
|
||||
SETUVAR fish_color_comment:444444
|
||||
SETUVAR fish_color_cwd:green
|
||||
SETUVAR fish_color_cwd_root:red
|
||||
SETUVAR fish_color_end:0087d7
|
||||
SETUVAR fish_color_error:d70000
|
||||
SETUVAR fish_color_escape:brcyan
|
||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||
SETUVAR fish_color_host:normal
|
||||
SETUVAR fish_color_host_remote:\x1d
|
||||
SETUVAR fish_color_keyword:\x1d
|
||||
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
|
||||
SETUVAR fish_color_normal:normal
|
||||
SETUVAR fish_color_operator:brcyan
|
||||
SETUVAR fish_color_option:\x1d
|
||||
SETUVAR fish_color_param:c6c6c6
|
||||
SETUVAR fish_color_quote:ffd700
|
||||
SETUVAR fish_color_redirection:8787af\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_background:\x1d
|
||||
SETUVAR fish_pager_color_completion:normal
|
||||
SETUVAR fish_pager_color_description:yellow\x1e\x2d\x2ditalics
|
||||
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_secondary_background:\x1d
|
||||
SETUVAR fish_pager_color_secondary_completion:\x1d
|
||||
SETUVAR fish_pager_color_secondary_description:\x1d
|
||||
SETUVAR fish_pager_color_secondary_prefix:\x1d
|
||||
SETUVAR fish_pager_color_selected_background:\x2d\x2dreverse
|
||||
SETUVAR fish_pager_color_selected_completion:\x1d
|
||||
SETUVAR fish_pager_color_selected_description:\x1d
|
||||
SETUVAR fish_pager_color_selected_prefix:\x1d
|
||||
Reference in New Issue
Block a user