aboutsummaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
blob: 67a2fa533b4b60984892081aaa211650009dafc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
if status is-interactive
    # Commands to run in interactive sessions can go here
    starship init fish | source

    abbr g git
    abbr c clear
    abbr p pwd
    abbr q exit
    abbr b bat
    abbr v nvim
    abbr vim nvim

    abbr l "exa --icons"
    abbr ll "exa -l --icons"
    abbr T "exa --icons --tree"

    abbr t tmux
    abbr tn "tmux new -s"
    abbr ta "tmux attach -t"
    abbr tl "tmux ls"

    set fish_greeting ""

    function last_history_item
        echo $history[1]
    end

    abbr -a !! --position anywhere --function last_history_item

    fish_config theme choose tokyonight_storm
end

source ~/.config-priv/fish/config.fish

fish_add_path ~/.local/bin