-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.fish
52 lines (38 loc) · 1.4 KB
/
config.fish
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
# Path to Oh My Fish install.
set -q XDG_DATA_HOME
and set -gx OMF_PATH "$XDG_DATA_HOME/omf"
or set -gx OMF_PATH "$HOME/.local/share/omf"
set -x LANG en_US.UTF-8
# Customize Oh My Fish configuration path.
#set -gx OMF_CONFIG "/home/pjrt/.config/omf"
# Load oh-my-fish configuration.
source $OMF_PATH/init.fish
alias st="git st"
alias rt="cd (git rev-parse --show-toplevel)"
alias open="xdg-open"
alias qghc="ghcid -o (git rev-parse --show-toplevel)/.git/cabal.quickfix -c cabal new-repl"
alias sghc="ghcid -o (git rev-parse --show-toplevel)/.git/cabal.quickfix -c stack repl"
alias install-deps="cabal install -j --dependencies-only"
alias sandbox="cabal sandbox"
alias sandbox-reset="sandbox delete; sandbox init"
alias reload="source ~/.config/fish/config.fish"
alias hoo="hoogle --count=10"
alias vim="nvim"
set -x EDITOR 'nvim'
set -x BROWSER 'chromium'
set -x TERM rxvt-unicode-256color
set -x MANPAGER "nvim -c 'set ft=man' -"
set -x XMODIFIERS "@im=none"
# Compilation flags
set -x ARCHFLAGS "-arch x86_64"
# FZF def command
set -x FZF_DEFAULT_COMMAND 'ag -l -g ""'
#set RPATH (ruby -rubygems -e "puts Gem.user_dir")/bin
set -gx PATH ~/.local/bin /home/pjrt/.ghcup/bin /home/pjrt/.cabal/bin ~/.cache/yay/bloop/src /usr/bin /usr/local/bin /usr/bin/core_perl $PATH
function lacmd
la (which $argv)
end
source ~/.config/fish/config-local.fish
test -z $DISPLAY
and test $XDG_VTNR -eq 1
and exec startx