summaryrefslogtreecommitdiffstats
path: root/.config/fish/config.fish
blob: 84e2340e44a4b52572f55f874377f0ecaf27beb6 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
fish_add_path $HOME/.local/bin

set --global --export EDITOR nvim
set --global --export PAGER "less -R"
set --global --export MANPAGER nvim +Man!
set --global --export GOPATH $HOME/.local/share/go
set --global --export GPG_TTY (tty)
set --global fish_prompt_pwd_dir_length 0

# nnn
set --global --export NNN_OPENER $HOME/.local/bin/nuke
set --global --export NNN_BMS "w:~/nextcloud/personal_wiki;r:~/nextcloud/research;n:~/nextcloud;d:~/down"
set --global --export NNN_COLORS 2136
set --global --export NNN_FCOLORS c1e2272e006033f7c6d6abc4
set --global --export NNN_PLUG "d:dragdrop;f:fzcd;h:fzhist;o:fzopen;l:launch;y:x2sel"
set --global --export NNN_TRASH 1

set --global --export FZF_DEFAULT_OPTS "--height=40% --layout=reverse --info=inline --border"
set --global --export WECHALLUSER "drocan"
set --global --export WECHALLTOKEN "35624-0D38B-A2F16-A98B0-5963D-6DF19"
set --global --export RUST_SRC_PATH (rustc --print sysroot)/lib/rustlib/src/rust/library/
set --global --export NLTK_DATA "$HOME/.local/share/nltk_data"

if status is-interactive
    abbr --add --global v 'nvim'
    abbr --add --global nt 'neomutt'
    abbr --add --global rm 'rm -i'
    abbr --add --global cp 'cp -i'
    abbr --add --global mv 'mv -i'
    abbr --add --global free 'free -m'
    abbr --add --global df 'df -h'
    abbr --add --global C 'xsel -b' # Copy to clipboard
    abbr --add --global bc 'bc -l'
    abbr --add --global ledger "ledger -f ~/nextcloud/virtuals/ledger.ledger"
    abbr --add --global report "report -f ~/nextcloud/virtuals/ledger.ledger"
    abbr --add --global think 'tickle +1d' #think it over
    abbr --add --global lim 'nvim /home/yigit/nextcloud/virtuals/ledger.ledger'
    abbr --add --global maybe 'task due:someday list'
    abbr --add --global music 'mpv --no-vid'
    abbr --add --global s "du -hs * | sort -rh | head -5"
    abbr --add --global b "buku --suggest --colors 'onlxm'"
    abbr --add --global tp 'trash-put'
    abbr --add --global ls 'exa'
    abbr --add --global wim 'nvim /home/yigit/nextcloud/personal_wiki/text/index.wiki'
    abbr --add --global torem 'cd /home/yigit/nextcloud/virtuals/remind/'
    abbr --add --global taw 'task add +next +@work'
    abbr --add --global tat 'task add +next +@tablet pro:res.toread'
    abbr --add --global tre 'exa -l -T -L 2 --header --git-ignore -F -d -I node_modules'
    abbr --add --global guno 'git status -uno'
    abbr --add --global bo 'bukuopener'
    abbr --add --global re 'rem -gaad -@2'
    abbr --add --global in 'task add +in'
    abbr --add --global inc 'task +in +PENDING count'

    zoxide init fish | source
end