dotfiles/fish/config.fish

66 lines
1.7 KiB
Fish

fish_config theme choose "Dracula Official"
if status is-interactive
# Commands to run in interactive sessions can go here
end
function fish_greeting
# echo "Welcome Enrique"
# fastfetch
end
function yy
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
if test -f /home/enrique/miniconda3/bin/conda
eval /home/enrique/miniconda3/bin/conda "shell.fish" "hook" $argv | source
else
if test -f "/home/enrique/miniconda3/etc/fish/conf.d/conda.fish"
. "/home/enrique/miniconda3/etc/fish/conf.d/conda.fish"
else
set -x PATH "/home/enrique/miniconda3/bin" $PATH
end
end
# <<< conda initialize <<<
conda deactivate
## EVALS ##
# eval (/home/linuxbrew/.linuxbrew/bin/brew shellenv)
starship init fish | source
fzf --fish | source
## ALIASES ##
alias zy "sudo zypper"
alias zypper 'sudo zypper'
alias srcfish 'source ~/.config/fish/config.fish'
alias pull-st 'bash ~/bin/pull-st.sh'
alias push-st 'bash ~/bin/push-st.sh'
alias sentinel 'ssh -X admin@100.88.99.193 "/publico/sentinel"'
alias glowp 'glow -p'
alias glows 'glow -s dracula'
alias mdcht 'glow -s ~/Projects/Qt-Learning/Notes/xx-MarkDown-CheatSheet.md'
alias nv 'nvim'
alias aemu '~/Android/Sdk/emulator/emulator -avd API30_Flutter &'
## EXPORTS ##
set -Ux EDITOR nvim
set -Ux MICRO_TRUECOLOR 1
fish_add_path -g -p ~/flutter-dev/flutter/bin
fish_add_path -g -p /opt/android-studio/bin
fish_add_path -g -p ~/.pub-cache/bin
fish_add_path -g -p /usr/local/bin
fish_add_path -g -p ~/.local/bin
## NEOVIM DISTRO ##
set -Ux NVIM_APPNAME "nvim"