all repos

dotfiles @ d293e772ce7f71b317db34e11f19f20214d4ba5e

i use rach linux btw

dotfiles/config/fish/config.fish (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
updates, 1 month ago
1
set -gx GOPATH $HOME/.local/share/go
2
set -gx GOBIN $GOPATH/bin
3
set -gx CARGO_HOME $HOME/.local/share/cargo
4
set -gx RUSTUP_HOME $HOME/.local/share/rustup
5
set -gx OPAMROOT $HOME/.local/share/opam
6
set -gx NIX_PATH $HOME/.local/nix
7
set -gx LEDGER_FILE $HOME/org/finance/2026.journal
8
set -gx RIPGREP_CONFIG_PATH $HOME/.config/rgrc
9
10
fish_add_path -g $GOBIN
11
fish_add_path -g $CARGO_HOME/bin
12
fish_add_path -g $HOME/bin
13
fish_add_path -g $HOME/.local/bin
14
fish_add_path -g $HOME/.bun/bin
15
fish_add_path -g ~/.local/share/mise/shims
16
fish_add_path -P node_modules/.bin
17
18
if type -q nvim
19
  set -gx EDITOR nvim
20
  set -gx VISUAL nvim
21
  set -gx MANPAGER "nvim +Man!"
22
23
  alias vim nvim
24
  alias e vim
25
  alias ee "nvim -S"
26
end
27
28
if status is-interactive
29
  zoxide init fish | source
30
  direnv hook fish | source
31
32
  function fish_user_key_bindings
33
    fish_vi_key_bindings
34
  end
35
end
36
37
alias cls clear
38
alias cp "cp -r"
39
alias rm "rm -i"
40
alias mkdir "mkdir -p"
41
alias free "free -h"
42
alias df "df -h"
43
alias du "du -h"
44
alias chmox "chmod +x"
45
alias ":q" exit
46
47
alias ... "cd ../.."
48
alias .3 "cd ../../.."
49
50
if type -q hledger; alias f hledger; end
51
if type -q jj; abbr --add j jj; end
52
if type -q tmux; and not set -q TMUX; alias t "tmux attach 2>/dev/null || tmux"; end
53
54
if type -q eza
55
  alias ls "eza -l"
56
  alias la "ls -a"
57
  alias ll ls
58
end
59
60
if test "$TERM" = "xterm-kitty"
61
  alias ssh "kitty +kitten ssh"
62
  alias icat "kitty +kitten icat"
63
end