diff options
Diffstat (limited to 'lib/common.nix')
-rw-r--r-- | lib/common.nix | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/lib/common.nix b/lib/common.nix index 325810f..de74f19 100644 --- a/lib/common.nix +++ b/lib/common.nix @@ -144,9 +144,6 @@ in { # emacs-like history navigation "\\en" = "next-history"; "\\ep" = "previous-history"; - # groq-specific stuff - "\\er" = "redraw-current-line"; - "\\C-xt" = ''"$(_bake_targets)\e\C-e\er"''; }; extraConfig = '' $if Guile @@ -228,6 +225,7 @@ in { authors = "shortlog -s -n"; slog = "log --stat"; glog = ''log --decorate --all --graph --pretty=format:"%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset" --abbrev-commit --date=relative''; + last = "log -1 HEAD"; logbr = "log -r origin/HEAD..HEAD"; mylog = ''!git log --author=$USER --decorate --pretty=format:"%Cred%h%Creset %s%Creset%C(yellow)%d%Creset %Cgreen(%cr)%Creset" --abbrev-commit --date=relative''; mrd = "!cat <(git shortlog origin/HEAD..HEAD) <(git diff --stat origin/HEAD...HEAD)"; @@ -236,12 +234,12 @@ in { "!git push" "-o merge_request.create" "-o merge_request.merge_when_pipeline_succeeds" - "-o merge_request.label=ReleaseUpdate::NotRequired" "-o merge_request.assign=$USER" # disable these two args bc gitlab just uses the commit message anyway # ''-o merge_request.title="$(git log -n1 --format=%s)"'' # ''-o merge_request.description="$(git log -n --format=%b)"'' ]; + unstage = "reset HEAD --"; }; extraConfig = { commit.template = "${./git-commit-template}"; @@ -277,10 +275,11 @@ in { clock24 = true; customPaneNavigationAndResize = false; disableConfirmationPrompt = false; - escapeTime = 0; + escapeTime = 500; historyLimit = 10000; keyMode = "emacs"; - newSession = false; + mouse = true; + newSession = true; resizeAmount = 5; reverseSplit = false; secureSocket = false; @@ -290,12 +289,15 @@ in { terminal = "xterm-256color"; tmuxinator.enable = false; tmuxp.enable = false; + plugins = with pkgs.tmuxPlugins; [ + extrakto + tmux-fzf + ]; extraConfig = '' # Automatically set window title set-window-option -g automatic-rename on set-option -g set-titles on set -g xterm-keys on - setw -g mouse on ## Panes # Split panes bind-key | split-window -h -c "#{pane_current_path}" @@ -343,13 +345,9 @@ in { set -g window-status-current-style fg=colour0,bg=colour13 set -g window-status-format '#I) #W ' set -g window-status-current-format '#I) #W ' - # special thing for groq's SFT thing - set -g update-environment "SFT_AUTH_SOCK SSH_AUTH_SOCK SSH_CONNECTION" + # + set-option -g allow-passthrough on ''; - plugins = with pkgs.tmuxPlugins; [ - extrakto - tmux-fzf - ]; }; programs.direnv = { @@ -412,9 +410,9 @@ in { bash = { enable = true; - #profileExtra = '' - # # put SSH_AUTH_SOCK here? - #''; + profileExtra = '' + # put SSH_AUTH_SOCK here? + ''; initExtra = '' #DIR=~/.nix-profile/etc/profile.d #[[ -f "$DIR/nix.sh" ]] && . "$DIR/nix.sh" |