-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.fish
66 lines (57 loc) · 1.49 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
# Set environment variables
set fish_greeting
set -gx TERM xterm-256color
set -gx PATH /home/changminjeon/.local/bin $PATH
# Fish git prompt
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_color_branch yellow
set __fish_git_prompt_color_upstream_ahead green
set __fish_git_prompt_color_upstream_behind red
# Status Chars
set __fish_git_prompt_char_dirtystate 'x'
# Fish prompt
function fish_prompt
set last_status $status
set_color white
echo -n (hostname)
set_color white
echo -n :
set_color $fish_color_cwd
echo -n (prompt_pwd)
set_color normal
echo -n (__fish_git_prompt)
echo -n ' > '
set_color normal
end
# Abbreviation
abbr -ag add adb devices
abbr -ag adp adb pair
abbr -ag adc adb connect
abbr -ag addc adb disconnect
abbr -ag ads adb shell
abbr -ag adk adb kill-server
abbr -ag python python3
abbr -ag pip python3 -m pip
abbr -ag pip3 python3 -m pip
abbr -ag ls exa -l -s type
abbr -ag la exa -al -s type
abbr -ag ga git add
abbr -ag gb git branch
abbr -ag gc git checkout
abbr -ag gd git diff
abbr -ag gf git fetch
abbr -ag gl git pull
abbr -ag gp git push
abbr -ag gm git merge
abbr -ag gcm git commit -m
abbr -ag gst git status
abbr -ag grhh git reset HEAD --hard
abbr -ag grup git remote update --prune
abbr -ag gloga git log --all --graph --oneline --decorate
abbr -ag tt tmux attach -t
abbr -ag tl tmux ls
abbr -ag add adb devices
abbr -ag adc adb connect
abbr -ag adp adb pair
abbr -ag adk adb kill-server
abbr -ag addc adb disconnect