summaryrefslogtreecommitdiffstats
path: root/.config/fish/conf.d/alias.fish
blob: 2f1b2cb47c746e0ba18a6c5f193ee2708f0e04f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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

function gitinit
    git init
    git commit -m "Initial commit" --allow-empty
end