Skip to content

Commit ca84913

Browse files
committed
feat: add some good stuff for zsh
1 parent febdac3 commit ca84913

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

home/cli/tools/tmux/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
gitmux
236236
# Script to find files with tmux in vim
237237
(writeShellScriptBin "tmux-sessionizer-script" ''
238-
selected=$(find ~/work ~/ztm ~/personal ~/projects ~/opensource -maxdepth 1 -mindepth 1 -type d | fzf)
238+
selected=$(find ~/work ~/ztm ~/personal ~/projects ~/opensource ~/alura/ -maxdepth 1 -mindepth 1 -type d | fzf)
239239
if [[ -z "$selected" ]]; then
240240
exit 0
241241
fi

home/shells/zsh/default.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,16 @@
171171
zstyle ':fzf-tab:complete:kill:argument-rest' fzf-preview 'ps --pid=$word -o cmd --no-headers -w -w'
172172
zstyle ':fzf-tab:complete:cd:*' fzf-preview '${pkgs.eza}/bin/eza -1 --color=always $realpath'
173173
zstyle ':fzf-tab:*' switch-group ',' '.'
174+
175+
autoload -Uz edit-command-line
176+
zle -N edit-command-line
177+
bindkey '^x^e' edit-command-line
178+
179+
alias -s json='jless'
180+
181+
alias -s {txt,nix}='$EDITOR'
182+
183+
alias -s md='bat'
174184
'';
175185
};
176186
};

home/system/utils/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
inputs,
32
lib,
43
pkgs,
54
config,
@@ -12,6 +11,7 @@
1211
config = lib.mkIf config.utils.enable {
1312
home = {
1413
packages = with pkgs; [
14+
jless
1515
parted
1616
unzip
1717
polkit_gnome

0 commit comments

Comments
 (0)