Sanchayan Maity
77f28cf4ba
fish: functions/rgc/rgf: Do not colourise ripgrep output
...
This allows us to drop having to run AnsiEsc.
2022-03-28 17:10:31 +05:30
Sanchayan Maity
81bf6122dc
fish: functions: Use a new alias for verbose git status
2022-03-22 14:10:04 +05:30
Sanchayan Maity
f99925d532
fish: functions/ta: Rename to ta & allow selection via fzf
2022-03-17 09:03:21 +05:30
Sanchayan Maity
a319c28964
fish: functions/fish_prompt: Add virtualfish
2022-03-15 00:12:05 +05:30
Sanchayan Maity
66cda3ef9b
fish: functions: Rename vf to vfv
2022-03-15 00:12:05 +05:30
Sanchayan Maity
7b84c0eb20
Revert "fish/functions/gl: git: Manually set the file type to git when calling nvim"
...
This reverts commit a30eda8531
.
Fixed upstream with https://github.com/neovim/neovim/pull/17517 .
2022-02-26 11:04:30 +05:30
Sanchayan Maity
2776d00572
fish: functions/lt: Add an exa alias with tree option
2022-02-17 20:58:36 +05:30
Sanchayan Maity
6bbc55a2c2
fish: functions/l/ll: Drop the -h option
...
exa prints human readable sizes by default, so the -h option no longer
applies.
2022-02-17 20:52:14 +05:30
Sanchayan Maity
cd95166cfb
fish: functions/hf: Add an alias for htop with filter
2022-02-01 16:31:17 +05:30
Sanchayan Maity
371794dfc7
fish: functions/topf: Add an alias for top
2022-02-01 11:56:15 +05:30
Sanchayan Maity
0f2e1d3d1e
fish: functions/b: Take number of levels to go back up the directory
2022-01-24 13:23:35 +05:30
Sanchayan Maity
aa6c176757
fish: functions: Add aliases for fetch & merge
2022-01-22 17:16:38 +05:30
Sanchayan Maity
873f3643aa
fish: functions: Add alias to switch git repo between HTTPS and SSH
...
Taken from
https://github.com/whonore/dotfiles/blob/main/fish/functions/git_remote_toggle.fish
2022-01-15 17:42:51 +05:30
Sanchayan Maity
389845a79e
fish: functions/rfc: Enable preview support
...
RFC files are text files, using anything other than less like bat will
not add much value.
2022-01-10 14:23:49 +05:30
Sanchayan Maity
e3d3e8b986
fish: functions: Add an alias to coqtop
...
Wrap coqtop in rlwrap and create an alias for that.
2022-01-07 20:39:57 +05:30
Sanchayan Maity
426cdd7ee8
fish: functions: Add an alias to easily get neovim start up time
2022-01-07 14:05:21 +05:30
Sanchayan Maity
a30eda8531
fish/functions/gl: git: Manually set the file type to git when calling nvim
...
See discussion in
https://github.com/neovim/neovim/issues/16940
2022-01-06 15:15:20 +05:30
Sanchayan Maity
307ae9eb7f
fish: functions: gd: Allow passing arguments
2022-01-05 13:03:59 +05:30
Sanchayan Maity
22b9c09391
fish: functions: Add aliases for git difftool
2022-01-04 19:35:56 +05:30
Sanchayan Maity
e541b2d745
fish: Refactor fish shell configuration
...
- Drop starship. This also helps us to get rid of ttf-font-nerd install
which is a dependency of starship.
- Source fnm env only once on login. This makes fish shell/terminal load
much much faster. Add an alias to invoke fnm use easily.
- Set path or environment variables only when required path or binary
exists.
- Introduce a function to profile fish easily.
- Borrow the fish prompt logic from Alexis King's configuration.
- Factor out key binding related settings.
- Make su launch fish.
Prompt and other ideas for clean up taken from
https://github.com/lexi-lambda/dotfiles/tree/master/fish
2021-12-29 18:54:57 +05:30
Sanchayan Maity
d74d65f667
fish: functions/gl: Allow passing an argument & support cherry picking a commit
...
This allows us to specify a directory or file to run this git log
command on. Also add support for cherry-picking a commit.
2021-12-23 13:56:03 +05:30
Sanchayan Maity
e661dded6c
fish: functions: Add aliases for ls/exa and mkdir
2021-12-21 09:26:36 +05:30
Sanchayan Maity
64358a0170
fish: Add an alias to reload kitty configuration
2021-12-18 11:00:41 +05:30
Sanchayan Maity
5a6981e6f7
fish: functions: Use fzf git browse function for git log
2021-12-17 09:58:18 +05:30
Sanchayan Maity
1896207312
fish: functions/fbr: Drop use of delta and xclip
...
We do not use delta anymore (neovim for everything) and instead of xclip
we need wl-copy in Wayland.
While at it, also add support for scrolling the preview.
2021-12-16 20:23:36 +05:30
Sanchayan Maity
f839a3bfff
fish: Add the most commonly used git aliases
2021-12-14 15:44:33 +05:30
Sanchayan Maity
de0a69ee11
fish: Add an alias to ps_mem
2021-12-13 15:15:01 +05:30
Sanchayan Maity
0d0480a6b2
fish: Make all aliases into functions
...
Using alias inside ~/.config/fish/config.fish can slow down shell
start as each alias/function will be eagerly loaded.
alias is slow because it involves eval.
functions support lazy/auto loading.
https://fishshell.com/docs/current/tutorial.html#autoloading-functions
2021-12-10 19:50:19 +05:30
Sanchayan Maity
f5fd6ddd55
fish: Move all functions to ~/.config/fish/functions
2021-12-10 15:39:44 +05:30