-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.fish.macos
50 lines (40 loc) · 1.49 KB
/
config.fish.macos
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
if status is-interactive
# Commands to run in interactive sessions can go here
end
set fish_prompt_pwd_dir_length 0
function fish_prompt
# Set options for the fish_git_prompt
set -g __fish_git_prompt_showdirtystate yes
set -g __fish_git_prompt_char_cleanstate ' ✔'
set -g __fish_git_prompt_char_dirtystate '✗'
set -g __fish_git_prompt_color_branch green
set -g __fish_git_prompt_color_cleanstate green
set -g __fish_git_prompt_color_dirtystate red
set -g __fish_git_prompt_showupstream none
set -g __fish_git_prompt_show_informative_status no
set -g __fish_git_prompt_showstashstate no
set -g __fish_git_prompt_showuntrackedfiles no
# Show current directory
set_color green
echo -n (prompt_pwd)
# Show Git branch and status if in a Git repository
set_color normal
fish_git_prompt
# Show the prompt symbol
echo -n ' > '
end
# add homebrew to path
set -U fish_user_paths /opt/homebrew/bin $fish_user_paths
# add npm to path
set -U fish_user_paths ~/.npm-global/bin $fish_user_paths
# autojump
[ -f /opt/homebrew/share/autojump/autojump.fish ]; and source /opt/homebrew/share/autojump/autojump.fish
# asdf version manager
source ~/.asdf/asdf.fish
direnv hook fish | source
# llvm
fish_add_path /opt/homebrew/opt/llvm/bin
set -gx LDFLAGS "-L/opt/homebrew/opt/llvm/lib -L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++"
set -gx CPPFLAGS "-I/opt/homebrew/opt/llvm/include"
set -gx CXX clang++
set -gx CC clang