Commit Graph

22 Commits

Author SHA1 Message Date
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.
2023-05-09 16:19:07 +05:30
Sanchayan Maity 9363fc249b
fish: conf.d/setup: Set up all path related things at start 2023-05-05 10:54:38 +05:30
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.
2023-05-05 10:27:56 +05:30
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.
2023-04-22 13:04:31 +05:30
Sanchayan Maity 33151066a1 fish: conf.d/setup: Set environment variables for password store 2022-12-16 13:58:29 +05:30
Sanchayan Maity 1766986d8e fish: conf.d/setup: Setup environment variables required by go 2022-12-11 16:55:41 +05:30
Sanchayan Maity 28eccacade fish: setup: Set a needed environment variable for work 2022-11-30 17:20:46 +05:30
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
2022-10-03 11:48:16 +05:30
Sanchayan Maity 16251e5d4c fish: conf.d/setup: Enable XDG support for ghcup 2022-08-03 20:31:41 +05:30
Sanchayan Maity 478fede9e4 fish: Clean up with fish_indent 2022-04-12 18:27:01 +05:30
Sanchayan Maity 8a7567a8b1 Start tmux sessions using systemd
While starting the tmux sessions from fish worked some environment
variables were not getting picked up in tmux session.

For example DISPLAY is set after we log in and the graphical sway
session starts but since tmux sessions were started before that it
would be absent from the tmux session. We may be wrong about the
exact order and reasoning for this but atleast that is the observed
behaviour.

Fix this by defining a sway session target and making the tmux session
service dependent on it.
2022-04-04 18:07:50 +05:30
Sanchayan Maity 55685b3084 fish: Make life easier by setting GST_DEBUG_DUMP_DOT_DIR globally 2022-04-03 09:30:00 +05:30
Sanchayan Maity ab2d063759 fish: setup: Disable colouring in log and debug output for GStreamer 2022-03-27 19:26:17 +05:30
Sanchayan Maity 8d216bc1e6 fish: setup: Drop TERM setting for kitty 2022-03-27 18:16:10 +05:30
Sanchayan Maity 5ed0951392 fish: Start tmux sessions on login 2022-03-17 09:14:06 +05:30
Sanchayan Maity 674e3fa3f6 fish: conf.d/setup: Set environment variables required by wayland 2022-01-28 20:52:47 +05:30
Sanchayan Maity 3600310085 fish: conf.d/setup: Set environment variable required by ssh-agent 2022-01-28 12:07:10 +05:30
Sanchayan Maity a6b2242260 Revert "fish: conf.d/setup: Add QT environment variables for Wayland"
This reverts commit ca802a885f.

Not required anymore since it is fixed with previous commit 3cd3e1e.
2022-01-28 12:06:39 +05:30
Sanchayan Maity ca802a885f fish: conf.d/setup: Add QT environment variables for Wayland
See https://wiki.archlinux.org/title/Wayland#Qt.

For some reason, even after setting this in systemd environment
variables, QT_QPA_PLATFORM does not get set.
2022-01-26 20:55:39 +05:30
Sanchayan Maity ef84036ec3 fish: conf/setup: Set XDG base directory environment variables 2022-01-12 17:39:10 +05:30
Sanchayan Maity 95a247891e fish: conf/setup: Pass the shell syntax to use for fnm
From the twitter discussion with fnm author, shell inference seems to be
slow. Passing the shell to use manually seems to speed this up.

fnm env --log-level=quiet | source

Executed in  534.50 millis    fish           external
   usr time    0.62 millis  620.00 micros    0.00 millis
   sys time    4.76 millis    0.00 micros    4.76 millis

fnm env --shell=fish --log-level=quiet | source

Executed in    1.51 millis    fish           external
   usr time    1.06 millis    0.00 micros    1.06 millis
   sys time    0.58 millis  579.00 micros    0.00 millis

Also, see the github issue
https://github.com/Schniz/fnm/issues/621
2022-01-03 20:26:47 +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