172 Commits (master)

Author SHA1 Message Date
Sanchayan Maity a01903d5b4
fish: conf.d/cabal-abbr: Add abbreviations for cabal-clean 14 hours ago
Sanchayan Maity 10d42d0d42
fish: conf.d/cabal-abbr: Add abbreviations for cabal-edit & cabal-hoogle 5 days ago
Sanchayan Maity a9fc35d297
fish: conf.d/cabal-abbr: Fix cabal install abbreviation 1 week ago
Sanchayan Maity a3f8dbcb87
fish: conf.d/trash-cli-abbr: Add more abbreviations for rmtrash 2 weeks ago
Sanchayan Maity f37e10c68c
fish: conf.d: Add some abbreviations for cabal
Taken from https://vrom911.github.io/blog/haskell-aliases.
3 weeks ago
Sanchayan Maity 572a54d9fd
fish: conf.d: Add abbreviations for git
Taken from https://github.com/lewisacidic/fish-git-abbr with some
minor changes and additions of our own.
3 weeks ago
Sanchayan Maity 9fc6d0eb2a
fish: Drop vgrep aliases and introduce abbreviations
We still keep the vgrep + FZF aliases.
3 weeks ago
Sanchayan Maity 22f5664cd6
fish: conf.d: Clean up unnecessary -a option for abbreviations 4 weeks ago
Sanchayan Maity 3851e99f1b
fish: functions: Rename to not conflict with git abbreviations 4 weeks ago
Sanchayan Maity 6474278ca1
fish: functions: Remove tmux and some git aliases
We will introduce equivalent ones with abbreviations.
4 weeks ago
Sanchayan Maity 1b5a8f5edb
fish: conf.d/setup: Set ripgrep config file path
ripgrep will not look in any predetermined directory for a config
file automatically. Instead, we need to set the RIPGREP_CONFIG_PATH
environment variable to the file path of our config file.
4 weeks ago
Sanchayan Maity 6fdaf3356f
fish: conf.d: Clean up unnecessary -g option for abbreviations 1 month ago
Sanchayan Maity 83c572019c
fish: conf.d: Add abbreviations for trash-cli and rmtrash 1 month ago
Sanchayan Maity 9363fc249b
fish: conf.d/setup: Set up all path related things at start 1 month ago
Sanchayan Maity 7779044f67
fish: conf.d/setup: Add rustup symlink path to PATH
See related
https://bugs.archlinux.org/task/78309?string=78309&project=5
aa625d449c
17eb57f5a8

We still need to keep this to use rust-analyzer via rustup. The other
option would be install the rust-analyzer package separately and not
use this via rustup.
1 month ago
Sanchayan Maity dffb4856d1
fish: functions: Add an alias for global pnpm update 1 month ago
Sanchayan Maity 1369f826cb
fish: functions: Remove unused aliases 1 month ago
Sanchayan Maity 798cffa9f4
fish: functions: Add alias for detecting errors in media with ffmpeg 1 month ago
Sanchayan Maity d9f9952ca1
fish: functions: Add aliases for meson
GStreamer now uses these meson commands instead of ninja. We need
these aliases with GStreamer frequently.
1 month ago
Sanchayan Maity d1f66f1b13
fish: conf.d/setup: Drop fnm and switch to pnpm
Drop fnm and switch to pnpm for installing npm packages as well as
managing node versions.

Not using npm i -g has the added nicety of not having a node_modules
in /usr/lib.
2 months ago
Sanchayan Maity e6c64c61ae
fish: functions/dotg: Do not add dot to output file name
If a file name was foo.dot the current implementation generated a
foo.dot.svg. Fix it to just output a foo.svg.

Also fix a bug, where we were not considering the provided dotpath.
3 months ago
Sanchayan Maity 2ab2c2255b
fish: functions: Make it easier to review code with difftool aliases
If no arguments are provided to the git difftool aliases, just invoke
it with the default `git difftool main...current-branch`. This is what
we will use most of the time anyway as this is exactly the command
needed when we want to review our own changes before pushing upstream
or reviewing some other merge request.
3 months ago
Sanchayan Maity 7b6cd2575c
fish: functions: Add an alias for checking weather 3 months ago
Sanchayan Maity 926937d075
fish: functions/gl: Enable graph view 3 months ago
Sanchayan Maity e1be59cafa
fish: functions/dotg: Allow scrolling half a page up or down
Allow scrolling half a page up or down by binding keys to page up
or down actions.
4 months ago
Sanchayan Maity 080ba2c237
fish: functions: Drop nvim_profile
Since the recent TUI changes this does not work as intended.
4 months ago
Sanchayan Maity 210fc81fcd
fish: functions/glmd: Add an alias for formatting logs in markdown
Adapted from Heftig's (Jan Alexander Steffens) note on IRC

git config --global alias.mdlog 'log --reverse --pretty=format:"- **%s**  %w(0,2,2)%+b"'

This will format commits in a way that's nice for pasting into MR descriptions,
assuming the commit body is markdown.

Usually used like below

git mdlog @{u}.. | wl-copy
git mdlog origin/main.. | wl-copy
4 months ago
Sanchayan Maity 5abfc19676
Revert "fish: functions/gl: Pipe commit view to bat"
This reverts commit ec838cb54e.

We forgot that copying is not so easy when using bat or less.
4 months ago
Sanchayan Maity ec838cb54e
fish: functions/gl: Pipe commit view to bat
The recent tui changes to neovim cause some display issue after exiting
from it.

We need to provide the --pager option to bat for not exiting immediately
if the output size is smaller than the vertical size of the terminal.
See the --pager documentation in man bat. We use less -R instead of the
default less -RF.
5 months ago
Sanchayan Maity 5ed30a7796
fish: functions/dotg: Sort the results on basis of time
Idea adapted from
https://stackoverflow.com/questions/45500978/vim-fzf-sort-initial-results-on-file-date
5 months ago
Sanchayan Maity 62a933e451
fish: functions: Drop vale alias 5 months ago
Sanchayan Maity b31f41f8cb
fish: functions/gdt: Disable pager for default difftool
Now that we enable pager for difftool by default, we need to disable
it when using the default difftool which is neovim.
5 months ago
Sanchayan Maity c190b10e31
fish: functions/gm: Automatically detect master or main and merge
git merge master/main is a frequent enough operation. Automatically
detect whether the primary branch is master or main and merge.
5 months ago
Sanchayan Maity 7e4193fc82
Revert "fish: functions: Open dot graphs by default in xdot"
This reverts commit a827d25ac4.

xdot has been giving us problem with GStreamer dot graphs. May be
it is a bug with GStreamer but let us just use vimiv henceforth.
5 months ago
Sanchayan Maity 7310c77f78
fish: functions: Check return result of fzf selection 5 months ago
Sanchayan Maity 3279c97814
fish: functions: gp/gt: Use exact flag for fzf when using pass 5 months ago
Sanchayan Maity a6524a818a
fish: functions/gp: Add an alias for pass tessen 6 months ago
Sanchayan Maity 33151066a1 fish: conf.d/setup: Set environment variables for password store 6 months ago
Sanchayan Maity b7838e980d fish: functions/gt: Add helper for getting TOTP tokens with pass 6 months ago
Sanchayan Maity 1766986d8e fish: conf.d/setup: Setup environment variables required by go 6 months ago
Sanchayan Maity d06e32511f fish: functions: Add an alias to open bookmarks 6 months ago
Sanchayan Maity 28eccacade fish: setup: Set a needed environment variable for work 6 months ago
Sanchayan Maity e958aa027f fish: functions: Add helper to list library dependencies 7 months ago
Sanchayan Maity a827d25ac4 fish: functions: Open dot graphs by default in xdot 7 months ago
Sanchayan Maity 1e3eb7f7e0 fish: functions: Improve pipewire dot graph functions
xdot is more convenient to use and allows viewing dot file directly.
Generate svg only if requested.
8 months ago
Sanchayan Maity 7cb29dbd17 fish: functions: Add a helper to bring up or tear down VPN 8 months ago
Sanchayan Maity 68da927ad3 fish: conf.d: Drop setting of some environment variables
These have now been moved to environment.d and get set by systemd.

https://wiki.archlinux.org/title/Systemd/User#Environment_variables
8 months ago
Sanchayan Maity cb12ad28ab fish: Add fish-systemctl
https://github.com/wawa19933/fish-systemd

We do not use any plugin manager so just add this manually.
8 months ago
Sanchayan Maity edf40d4e04 fish: functions: Delete not much used systemd aliases 8 months ago
Sanchayan Maity e2880791b3 fish: functions: Add an alias for vale 8 months ago