summaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
blob: 4c4c09fe1dc429e01e1d5ee6404a1a2cfa5f224c (plain)
if status is-interactive
    if type -qf zoxide
        zoxide init fish | source
    end
    if type -qf devenv
        devenv hook fish | source
    end

    function mkcd --description "Make a directory and cd into it"
        mkdir -p $argv[1]
        cd $argv[1]
    end

    function rm --wraps rm
        argparse f/force -- $argv
        if set -ql _flag_f
            sh -c "rm $argv"
        else
            echo "No. Use trash or shred instead."
        end
    end

    function dot --wraps git --description "Performs git actions on the dotfiles repo"
        git -C ~/Projects/dotfiles $argv
    end

    alias ls="eza"
    alias ll="ls -l"
    alias la="ls -A"
    alias lla="ls -lA"
    alias lal="ls -Al"
    alias tree="eza -T"

    alias hx="helix"
    alias bios="systemctl reboot --firmware-setup"
    alias stow="stow -t ~"
end