summaryrefslogtreecommitdiffstats
path: root/.config/fish/conf.d/alias.fish
blob: 98c36b47ebe50aa7538a0372057e308a2c8cdae3 (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
24
# 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 weather -a location
    set no_follow "F"

    curl --get --data "$no_follow" "wttr.in/$location"
end