all repos

dotfiles @ 328de0d

i use rach linux btw

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
updates, 15 days 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
alias chmox "chmod +x"
29
alias cp "cp -r"
30
alias df "df -h"
31
alias du "du -h"
32
alias free "free -h"
33
alias mkdir "mkdir -p"
34
alias rm "rm -i"
35
36
if status is-interactive
37
  zoxide init fish | source
38
  direnv hook fish | source
39
40
  function fish_user_key_bindings
41
    fish_vi_key_bindings
42
  end
43
44
  alias ":q" exit
45
  alias ... "cd ../.."
46
  alias .3 "cd ../../.."
47
48
  if type -q hledger; alias f hledger; end
49
  if type -q jj; abbr --add j jj; end
50
  if type -q tmux; and not set -q TMUX; alias t "tmux attach 2>/dev/null || tmux"; end
51
  if type -q eza
52
    alias ls "eza -l"
53
    alias la "ls -a"
54
    alias ll ls
55
  end
56
57
  if test "$TERM" = "xterm-kitty"
58
    alias ssh "kitty +kitten ssh"
59
    alias icat "kitty +kitten icat"
60
  end
61
end