all repos

dotfiles @ e3bb031f9598b976eb3a9d16192525660ea1c95f

i use rach linux btw

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

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