dotfiles/.config/fish/config.fish

34 lines
784 B
Fish

source /usr/share/cachyos-fish-config/cachyos-config.fish
fish_config theme choose "Dracula Official"
oh-my-posh init fish --config ~/.cache/oh-my-posh/themes/dracula.omp.json | source
alias mntnas="sudo mount -a"
# Set Zed as the default editor
set -gx EDITOR /usr/local/bin/zed_sudo_wrapper
set -gx VISUAL "zeditor --wait"
set -gx SUDO_EDITOR "zeditor --wait"
# Start SSH agent if not already running
if not set -q SSH_AGENT_PID
eval (ssh-agent -c)
end
function update
sudo pacman -Syu --noconfirm
paru -Syu --noconfirm
sudo pacman -Sc --noconfirm
paru -Sc --noconfirm
end
function helium
exec /usr/bin/helium-0.6.9.1-x86_64.AppImage
end
function add_ssh_key
set -l ssh_key ~/.ssh/github-ssh
echo "Adding SSH key..."
ssh-add $ssh_key
end