summaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
blob: 182175507efc18520144fe52bc016b1bc1907568 (plain)
if status is-interactive
    if type -f zoxide
        zoxide init fish | source
    end
    if type -f 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
        argparse f/force -- $argv
        if set -ql _flag_f
            sh -c "rm $argv"
        else
            echo "No. Use trash or shred instead."
        end
    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 bios="systemctl reboot --firmware-setup"

    alias hx="helix"
    alias stow="stow -t ~"
end