mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 05:42:22 +00:00
add more previews to auto completion
This commit is contained in:
parent
64666051e4
commit
716d57797b
5 changed files with 56 additions and 31 deletions
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"optOut": false,
|
"optOut": false,
|
||||||
"lastUpdateCheck": 1593814336821
|
"lastUpdateCheck": 1593941718293
|
||||||
}
|
}
|
|
@ -1,26 +0,0 @@
|
||||||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
|
||||||
# The parser is also very primitive, and not human-friendly.
|
|
||||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
|
||||||
sort_key=47
|
|
||||||
sort_direction=1
|
|
||||||
hide_threads=1
|
|
||||||
hide_kernel_threads=1
|
|
||||||
hide_userland_threads=1
|
|
||||||
shadow_other_users=0
|
|
||||||
show_thread_names=0
|
|
||||||
show_program_path=1
|
|
||||||
highlight_base_name=0
|
|
||||||
highlight_megabytes=1
|
|
||||||
highlight_threads=1
|
|
||||||
tree_view=0
|
|
||||||
header_margin=1
|
|
||||||
detailed_cpu_time=0
|
|
||||||
cpu_count_from_zero=0
|
|
||||||
update_process_names=0
|
|
||||||
account_guest_in_cpu_meter=0
|
|
||||||
color_scheme=0
|
|
||||||
delay=15
|
|
||||||
left_meters=AllCPUs Memory Swap
|
|
||||||
left_meter_modes=1 1 1
|
|
||||||
right_meters=Tasks LoadAverage Uptime
|
|
||||||
right_meter_modes=2 2 2
|
|
1
files/.config/htop/htoprc
Symbolic link
1
files/.config/htop/htoprc
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/nix/store/695xfp0r77bhs2m9yvxzd78f8wr7s0bb-home-manager-files/.config/htop/htoprc
|
|
@ -33,7 +33,7 @@ function _my_prompt() {
|
||||||
echo -n "%F{$__bright_white} $(git_status)"
|
echo -n "%F{$__bright_white} $(git_status)"
|
||||||
echo
|
echo
|
||||||
# %3{stuff%} tell's zsh that the characters are printed as 3 chars wide
|
# %3{stuff%} tell's zsh that the characters are printed as 3 chars wide
|
||||||
echo -n "%3{╰─λ%} "
|
echo -n "%F{$__bright_white}%3{╰─λ%} "
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -84,8 +84,10 @@ let
|
||||||
realpath=\''${(Qe)~realpath}
|
realpath=\''${(Qe)~realpath}
|
||||||
"
|
"
|
||||||
|
|
||||||
zstyle ':fzf-tab:complete:cd:*' extra-opts --preview=$extract'lsd -1 --color=always $realpath'
|
#zstyle ':fzf-tab:complete:cd:*' extra-opts --preview=$extract'lsd -1 --color=always $realpath'
|
||||||
zstyle ':fzf-tab:complete:ls:*' extra-opts --preview=$extract'lsd -1 --color=always $realpath'
|
#zstyle ':fzf-tab:complete:ls:*' extra-opts --preview=$extract'lsd -1 --color=always $realpath'
|
||||||
|
#zstyle ':fzf-tab:complete:nvim:*' extra-opts --preview=$extract'bat --color=always $realpath'
|
||||||
|
zstyle ':fzf-tab:complete:*:*' extra-opts --preview=$extract'if [ -f $realpath ]; then bat -p --color=always $realpath; else lsd -1 --color=always $realpath; fi'
|
||||||
|
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
@ -97,6 +99,7 @@ in
|
||||||
|
|
||||||
enableAutosuggestions = true;
|
enableAutosuggestions = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
dotDir = ".config/zsh";
|
||||||
#defaultKeymap = "viins";
|
#defaultKeymap = "viins";
|
||||||
history = {
|
history = {
|
||||||
save = 10000;
|
save = 10000;
|
||||||
|
@ -111,6 +114,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
initExtraBeforeCompInit = ''
|
initExtraBeforeCompInit = ''
|
||||||
|
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
zstyle ':completion::complete:*' gain-privileges 1
|
zstyle ':completion::complete:*' gain-privileges 1
|
||||||
zstyle ':completion:*' list-prompt ""
|
zstyle ':completion:*' list-prompt ""
|
||||||
|
|
|
@ -21,7 +21,6 @@ in
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
elkowar_local.bashtop
|
elkowar_local.bashtop
|
||||||
htop
|
|
||||||
direnv
|
direnv
|
||||||
rnix-lsp
|
rnix-lsp
|
||||||
nix-prefetch-git
|
nix-prefetch-git
|
||||||
|
@ -44,6 +43,52 @@ in
|
||||||
zsh = import ./config/zsh.nix { inherit pkgs; inherit myConf; };
|
zsh = import ./config/zsh.nix { inherit pkgs; inherit myConf; };
|
||||||
|
|
||||||
|
|
||||||
|
htop = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
tmux = {
|
||||||
|
enable = true;
|
||||||
|
clock24 = true;
|
||||||
|
historyLimit = 10000;
|
||||||
|
keyMode = "vi";
|
||||||
|
shortcut = "y";
|
||||||
|
terminal = "tmux-256color";
|
||||||
|
customPaneNavigationAndResize = true;
|
||||||
|
extraConfig = ''
|
||||||
|
bind v split-window -h -c "#{pane_current_oath}"
|
||||||
|
bind b split-window -v -c "#{pane_current_oath}"
|
||||||
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
unbind '"'
|
||||||
|
unbind %
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
|
bind-key -T copy-mode-vi y send-keys -X copy-selection
|
||||||
|
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
|
||||||
|
unbind [
|
||||||
|
bind < copy-mode
|
||||||
|
unbind p
|
||||||
|
bind > paste-buffer
|
||||||
|
bind-key C-a set -g status off
|
||||||
|
bind-key C-s set -g status on
|
||||||
|
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -M -X copy-pipe 'xclip -in -selection clipboard'
|
||||||
|
|
||||||
|
set-option -g visual-activity off
|
||||||
|
set-option -g visual-bell off
|
||||||
|
set-option -g visual-silence off
|
||||||
|
set-window-option -g monitor-activity off
|
||||||
|
set-option -g bell-action none
|
||||||
|
'';
|
||||||
|
|
||||||
|
plugins = with pkgs.tmuxPlugins; [
|
||||||
|
{
|
||||||
|
plugin = prefix-highlight;
|
||||||
|
}
|
||||||
|
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
lsd = {
|
lsd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAliases = true;
|
enableAliases = true;
|
||||||
|
@ -64,6 +109,7 @@ in
|
||||||
fzf = {
|
fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
defaultCommand = "rg --files";
|
defaultCommand = "rg --files";
|
||||||
fileWidgetCommand = "fd --type f";
|
fileWidgetCommand = "fd --type f";
|
||||||
changeDirWidgetCommand = "rg --files --null | xargs -0 dirname | sort -u";
|
changeDirWidgetCommand = "rg --files --null | xargs -0 dirname | sort -u";
|
||||||
|
|
Loading…
Reference in a new issue