summaryrefslogtreecommitdiffstats
path: root/.config/fish/conf.d/alias.fish
blob: fdcf580770a7d569b969743f43bba35c40de4658 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# ls & alternatives
if type -q eza
    function ls --wraps eza
        eza --long --almost-all --binary --smart-group --group-directories-first --git --git-repos --color=auto --icons=never $argv
    end

    function lss --wraps eza --description "ls with total dir size"
        ls --total-size $argv
    end
end

function goto
    if test -d $argv[1]
        cd $argv[1]
    end

    mkdir -p $argv[1] && cd $argv[1]
end