Commit graph

80 commits

Author SHA1 Message Date
Daniel V
5796faef94 Set up XDG system environment variables sort of how they set them up
in nixos by appending them to the nix profiles
2020-05-11 06:56:21 -04:00
Daniel V
d3dff8cefb This fixes bash completion for me, though it may not be the best way.
Hopefully the pull request will go through or tell me how to do it better
2020-05-09 15:39:25 -04:00
Jason Felice
ff77fcadc2 Rename programs.tmux.tmuxConfig -> extraConfig 2020-03-29 13:58:58 -04:00
Väinö Järvelä
e1000fc1a6
bash: Let bash load completions lazily
As described in detail here: https://github.com/NixOS/nixpkgs/issues/32533
bash will load completion scripts in $p/share/bash-completion/completions/ on
startup instead of letting bash-completion do it's lazy loading. Bash startup
will then slow down (very noticeable when bash-completion is installed in a
profile).

This commit leaves loading of scripts in the hands of bash-completion,
improving startup time for everyone using `enableCompletion`.

Fixes #101
2020-01-21 12:18:28 +01:00
zhujun
2ef552b4d0 tmux: clear __NIX_DARWIN_SET_ENVIRONMENT_DONE
This is necessary to allow shell sessions inside tmux having a chance to
set environment properly
2019-11-01 13:37:18 +08:00
Daiderd Jordan
ae58eb80d2
nix-script: remove 2019-06-05 21:45:47 +02:00
Daiderd Jordan
58a2956870
tmux: add defaultCommand option 2019-02-16 21:05:32 +01:00
Kirill Elagin
644d6acb7a
zsh: Add vendor-completions to fpath 2019-01-04 15:50:48 +03:00
Andrew Childs
676ef10377 Unify environment configuration and don't run in child shells
This should enable `nix run` to work under shells like fish and zsh,
as well as making child shells not needlessly reset any environment
that should be inherited.

Implementation adapted from NixOS.
2018-10-25 01:00:52 +09:00
Mario Rodas
1a786eb088 bash: place bashrc early non-interactive return below system setup
Setting PATH and environment setup is required in non-interactive shells
2018-10-16 19:54:07 -05:00
Mario Rodas
dff88ee954 bash: do not evaluate completions on dumb terminals 2018-10-14 10:38:48 -05:00
Mario Rodas
b82bc64a0e bash: do not evaluate /etc/bashrc on non-interactive shells 2018-10-14 10:38:40 -05:00
Daiderd Jordan
9a04aea8ea
tmux: remove reattach-to-user-namespace
It's not been needed anymore for a few macOS releases now.
2018-10-12 21:59:41 +02:00
Daiderd Jordan
5a081e09ce
vim: expose programs.vim.package 2018-08-03 20:39:23 +02:00
Daiderd Jordan
6424eb998d
vim: formatting 2018-08-03 20:31:37 +02:00
Kirill Elagin
8e1f40ad48
gnupg: add gpg-agent service
Fixes #77.
2018-05-18 23:19:06 +03:00
Daiderd Jordan
072d2e75ab
zsh: fix nix run shells of nix 2.0 2018-03-27 00:32:31 +02:00
Daiderd Jordan
2b721afd99
ssh: add option to configure known hosts 2018-03-06 20:42:33 +01:00
Daiderd Jordan
02a8d469da
bash: move file 2018-01-20 01:35:42 +01:00
Daiderd Jordan
630ab79197
bash: remove shell wrapper 2018-01-20 01:34:45 +01:00
Daiderd Jordan
abd9a7c2fe
zsh: remove shell wrapper 2018-01-20 01:32:33 +01:00
Daiderd Jordan
4d4acf6550
zsh: don't clobber promptInit in a nix-shell
Configure this yourself if you want a different prompt
when a nix-shell is active.
2018-01-17 01:54:02 +01:00
Daiderd Jordan
ed72bf6409
bash: don't setup environment in a nix-shell 2018-01-13 14:51:36 +01:00
Eric Bailey
b6e692361e
tmux: play nice with iTerm2
That is, don't use reattach-to-user-namespace. iTerm2 provides an option to
allow applications in the terminal to access the clipboard, as well as deeper
shell integration utilities, which obviate the need for
reattach-to-user-namespace. What's more, iTerm2's tmux integration doesn't work
with it, nor when aggressive-resize is on.

See also:

- https://iterm2.com/documentation-preferences.html
- https://iterm2.com/documentation-utilities.html
- https://iterm2.com/documentation-tmux-integration.html
- https://github.com/tmux-plugins/tmux-sensible/issues/24
2018-01-03 13:32:07 -06:00
Daiderd Jordan
5d80f2c826
Merge pull request #50 from cbarrett/master
Port over the NixOS fish module
2017-11-06 00:09:29 +01:00
Daiderd Jordan
78d426940a
improve descriptions for a bunch of modules 2017-10-19 22:16:09 +02:00
Colin Barrett
a069111873 Set PATH since that's not being done by setEnvironment 2017-10-15 23:42:37 -04:00
Colin Barrett
1dd1f60f90 nixos -> nix_darwin 2017-10-15 23:26:16 -04:00
Colin Barrett
a6cd3bb61f Port over the NixOS fish module 2017-10-15 23:26:16 -04:00
Daiderd Jordan
e8355cdd93
system-build: change type of setEnvironment and setAliases
On NixOS system.build.setEnvironment also is a writeText
2017-10-07 12:41:33 +02:00
Daiderd Jordan
a8b4770275
environment: include extraInit in set-environment script 2017-10-07 12:27:43 +02:00
Daiderd Jordan
94fddd38af
zsh: move environment variables to zshenv 2017-10-07 11:19:11 +02:00
Daiderd Jordan
45d259cb3e
add programs.nix-index module 2017-07-28 23:17:53 +02:00
Daiderd Jordan
61cd181a0f
zsh: use container names for fzf docker completion 2017-07-18 22:34:09 +02:00
Daiderd Jordan
1cea7669ef
bash: disable completion by default 2017-07-11 20:21:09 +02:00
Daiderd Jordan
a6ca6e7974
bash: don't set default prompt 2017-07-09 17:14:34 +02:00
Daiderd Jordan
88a11d28f1
bash: enable by default 2017-07-09 10:16:57 +02:00
Daiderd Jordan
71f25cba9d
zsh: support nix-shell --run zsh 2017-07-09 10:14:49 +02:00
Daiderd Jordan
e01e48de3b
zsh: improve fzf docker completion 2017-06-21 23:48:32 +02:00
Daiderd Jordan
f5efd16be6
zsh: add fzf completion for docker containers 2017-06-17 21:46:49 +02:00
Daiderd Jordan
983c465a72
zsh: use custom fzf completion 2017-06-13 01:00:57 +02:00
Daiderd Jordan
9f669d69e3
tmux: fix vim copy bindings for >= v2.4 2017-06-04 19:20:19 +02:00
Daiderd Jordan
d5596d5df2
programs-info: add module and run install-info on system packages.
Fixes #25
2017-05-21 10:51:01 +02:00
Daiderd Jordan
1b6f56f5b8
environment: include /usr/sbin and /sbin in systemPath
Don't extend initial PATH adding extra entries should be done through
appending environment.systemPath or manually extending it with
environment.extraInit or similar options.
2017-05-15 19:46:34 +02:00
Daiderd Jordan
0495b41b4d
bash: add enableCompletion option 2017-05-13 15:32:11 +02:00
Daiderd Jordan
6b1e73adb1
zsh: use explicit source instead of . 2017-05-13 15:24:13 +02:00
Daiderd Jordan
1c30a6ab2d
fish: link /share/fish when enabled 2017-05-13 15:05:36 +02:00
Daiderd Jordan
2343363b5b
zsh: link /share/zsh when enabled 2017-05-13 14:45:45 +02:00
Daiderd Jordan
b6af291c84
add programs.man module
Note: this doesn't add man to systemPackages by default,
only man-old builds on darwin and the system version works fine.
2017-05-12 22:17:38 +02:00
Daiderd Jordan
338a4e85cc
programs-bash: use bashInteractive 2017-03-11 22:30:15 +01:00