-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.fish
56 lines (45 loc) · 1.08 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
# Disable welcome
set -U fish_greeting
set EDITOR nvim
set SUDO_EDITOR $EDITOR
# Enable vim-like
fish_vi_key_bindings
set fish_cursor_default block
set fish_cursor_insert line
set fish_cursor_replace_one underscore
set fish_cursor_visual block
set fish_vi_force_cursor
fish_add_path ~/.local/bin/
if command -sq nvim
alias vi=nvim
alias vim=nvim
end
if command -sq gls
alias ls="gls"
end
# lsd
if command -sq lsd
alias l1 "lsd -1"
alias ll="lsd --long --header --git --classify --group-directories-first"
alias tree="lsd --tree"
abbr lla "ll --all"
abbr llm "ll --sort=modified"
abbr lls "ll --sort=size"
else
alias ll="ls -lh"
alias lla="ls -lha"
alias llm="ls --sort=modified"
alias lls="ls --sort=size"
end
alias play="uv run ansible-playbook"
alias tm="tmux new -A -s main"
# Git Abbreviations
abbr -a gitco git checkout
abbr -a gita git add
abbr -a gitaa git add .
abbr -a gitca git commit -a -m \"
abbr -a gits git status
abbr -a gitl git log --oneline --decorate --all --graph
abbr -a gitp git pull --rebase
zoxide init fish | source
source ~/.config/fish/work.fish