-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.fish
81 lines (66 loc) · 1.61 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Greeting message is disabled.
set -g -x fish_greeting ''
# PATH variable is changed here.
set PATH $PATH ~/.local/bin/
set PATH $PATH ~/.cargo/bin/
set PATH $PATH /opt/mssql-tools/bin/
set PATH $PATH /snap/bin/
# Configs.
alias nvrc="nvim ~/.config/nvim/init.vim"
alias frc="nvim ~/.config/fish/config.fish"
# Python.
alias activate="source venv/bin/activate.fish"
# Git.
alias gdev="git checkout develop"
alias gmdev="git merge develop"
alias gmas="git checkout master"
alias gmmas="git merge master"
alias gs="git status"
alias ga="git add ."
alias gr="git pull --rebase"
alias gp="git push"
alias gf="git fetch --prune"
alias gbr="git checkout -b "
# Apps.
alias vim="nvim"
alias v="nvim ."
# Customized prompt.
function fish_prompt
# Username.
set_color c678dd
echo -n (whoami)
# `@` character.
set_color f92672
echo -n "@"
# Hostname.
set_color dcdcaa
echo -n (prompt_hostname)
echo -n " "
# Current dir.
set_color 636872
echo -n "["
echo -n (prompt_pwd)
echo -n "]"
echo -n " "
# `>` character.
set_color f92672
echo -n ">"
echo -n " "
set_color normal
end
# Customized colors.
set fish_color_normal bbbbbb
set fish_color_command c678dd --bold
set fish_color_quote ce9178
set fish_color_redirection c678dd
set fish_color_end f92672
set fish_color_error ff3333 --bold
set fish_color_param dcdcaa
set fish_color_comment 636872
set fish_color_match 61afef
set fish_color_selection 3f4450
set fish_color_search_match dcdcaa
set fish_color_operator f92672
set fish_color_escape f92672
set fish_color_escape d19a66
set fish_color_cancel 7f848e