Compare commits
3 Commits
c232e421e5
...
57cea11327
Author | SHA1 | Date | |
---|---|---|---|
57cea11327 | |||
1e10101310 | |||
5d757ba7fc |
6
flake.lock
generated
6
flake.lock
generated
@ -20,11 +20,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1731319897,
|
||||
"narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=",
|
||||
"lastModified": 1732014248,
|
||||
"narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "dc460ec76cbff0e66e269457d7b728432263166c",
|
||||
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1,7 +1,4 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
# asciinema
|
||||
asciinema # Terminal recording
|
||||
|
55
zsh.nix
55
zsh.nix
@ -20,12 +20,6 @@
|
||||
|
||||
enableCompletion = true;
|
||||
completionInit = ''
|
||||
# Basic auto/tab complete:
|
||||
autoload -U compinit
|
||||
zstyle ':completion:*' menu select
|
||||
zmodload zsh/complist
|
||||
compinit
|
||||
_comp_options+=(globdots) # Include hidden files.
|
||||
'';
|
||||
|
||||
autosuggestion = {
|
||||
@ -46,9 +40,10 @@
|
||||
antidote = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"getantidote/use-omz" # Handle OMZ dependencies
|
||||
"ohmyzsh/ohmyzsh path:lib" # Load OMZ's library
|
||||
"ohmyzsh/ohmyzsh path:plugins/colored-man-pages" # Load OMZ plugins
|
||||
"getantidote/use-omz" # Handle OMZ dependencies
|
||||
# Load lib only if things break
|
||||
# "ohmyzsh/ohmyzsh path:lib" # Load OMZ's library
|
||||
"ohmyzsh/ohmyzsh path:plugins/colored-man-pages" # Load OMZ plugins
|
||||
# "ohmyzsh/ohmyzsh path:plugins/magic-enter"
|
||||
"ohmyzsh/ohmyzsh path:plugins/command-not-found" # Provide suggested packages to be installed if a command cannot be found
|
||||
"ohmyzsh/ohmyzsh path:plugins/dirhistory kind:defer" # shortcuts for navigating directory history and hierarchy
|
||||
@ -73,21 +68,20 @@
|
||||
"belak/zsh-utils path:utility kind:defer" # Common shell utilities
|
||||
|
||||
"gko/ssh-connect" # List of most used ssh connections
|
||||
"sineto/web-search kind:defer" # zsh plugin for web searching
|
||||
"sineto/web-search kind:defer" # zsh plugin for web searching
|
||||
"zsh-users/zaw" # Desctiptions for command outputs (afaik)zplug "plugins/git", from:oh-my-zsh
|
||||
];
|
||||
};
|
||||
|
||||
initExtraFirst = ''
|
||||
# Basic auto/tab complete:
|
||||
autoload -U compinit
|
||||
zstyle ':completion:*' menu select
|
||||
zmodload zsh/complist
|
||||
_comp_options+=(globdots) # Include hidden files.
|
||||
|
||||
if [[ "''${ZSH_PROFILE}" -eq 1 ]]; then
|
||||
zmodload zsh/zprof # Profiling. Enable `zprof` at the end of initExtra too.
|
||||
# else
|
||||
# # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||
# # Initialization code that may require console input (password prompts, [y/n]
|
||||
# # confirmations, etc.) must go above this block; everything else may go below.
|
||||
# if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
|
||||
# source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
|
||||
# fi
|
||||
fi
|
||||
'';
|
||||
|
||||
@ -145,17 +139,14 @@
|
||||
alias kclip="kitty +kitten clipboard"
|
||||
fi
|
||||
|
||||
# Special aliases that may not work with Nix config
|
||||
# Command line head / tail shortcuts
|
||||
if [[ "''${ZSH_PROFILE}" -eq 1 ]]; then
|
||||
zprof
|
||||
fi
|
||||
|
||||
'';
|
||||
|
||||
localVariables = {
|
||||
YSU_MESSAGE_POSITION="after";
|
||||
ASCIINEMA_API_URL="https://asciinema.stefka.eu";
|
||||
YSU_MESSAGE_POSITION = "after";
|
||||
ASCIINEMA_API_URL = "https://asciinema.stefka.eu";
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
@ -201,16 +192,16 @@
|
||||
};
|
||||
|
||||
shellGlobalAliases = {
|
||||
H="| head";
|
||||
T="| tail";
|
||||
G="| grep";
|
||||
L="| less";
|
||||
M="| most";
|
||||
LL="2>&1 | less";
|
||||
CA="2>&1 | cat -A";
|
||||
NE="2> /dev/null";
|
||||
NUL="> /dev/null 2>&1";
|
||||
P="2>&1| pygmentize -l pytb";
|
||||
H = "| head";
|
||||
T = "| tail";
|
||||
G = "| grep";
|
||||
L = "| less";
|
||||
M = "| most";
|
||||
LL = "2>&1 | less";
|
||||
CA = "2>&1 | cat -A";
|
||||
NE = "2> /dev/null";
|
||||
NUL = "> /dev/null 2>&1";
|
||||
P = "2>&1| pygmentize -l pytb";
|
||||
};
|
||||
|
||||
history = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user