From 26e1ad4cb17e3b2f0a380716db217bf09852831b Mon Sep 17 00:00:00 2001 From: elwrcl Date: Fri, 4 Sep 2026 00:38:25 +0300 Subject: [PATCH] local zsh --- modules/home/home-zsh.ulu.nix | 46 ---------------------- modules/nixos/common/common-locale.ulu.nix | 1 - 2 files changed, 47 deletions(-) diff --git a/modules/home/home-zsh.ulu.nix b/modules/home/home-zsh.ulu.nix index e4d6de5..a027f73 100644 --- a/modules/home/home-zsh.ulu.nix +++ b/modules/home/home-zsh.ulu.nix @@ -9,57 +9,11 @@ autosuggestion.enable = true; syntaxHighlighting.enable = true; initContent = '' - export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border' - export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git' - alias ls='eza --icons --group-directories-first' alias ll='eza -lah --icons --group-directories-first' - alias la='eza -a --icons --group-directories-first' - alias lt='eza --tree --level=2 --icons' - alias cat='bat' - alias grep='grep --color=auto' - alias df='df -h' - alias du='du -h' - alias free='free -h' - - alias cp='cp -i' - alias mv='mv -i' alias rm='trash-put' - alias sysinfo='fastfetch' - alias monitor='sudo btop' - alias ports='sudo ss -tulpn' - alias myip='curl ifconfig.me' - - alias ..='cd ..' - alias ...='cd ../..' - alias ....='cd ../../..' - alias ~='cd ~' - alias -- -='cd -' - - alias gs='git status' - alias ga='git add' - alias gc='git commit -m' - alias gp='git push' - alias gl='git log --oneline --graph --decorate' - - alias rebuild='git -C ~/copland add -A && git -C ~/copland commit -m "update" && nh os switch' - alias rebuild-dry='nh os switch --dry' - alias rebuild-cop='nix flake update --flake ~/copland && git -C ~/copland add -A && git -C ~/copland commit -m "flake update $(date +%Y-%m-%d)" && nh os switch' - - extract() { - if [ -f "$1" ]; then - case "$1" in - *.tar.bz2) tar xjf "$1" ;; *.tar.gz) tar xzf "$1" ;; - *.bz2) bunzip2 "$1" ;; *.rar) unrar e "$1" ;; - *.gz) gunzip "$1" ;; *.tar) tar xf "$1" ;; - *.zip) unzip "$1" ;; *.7z) 7z x "$1" ;; - *) echo "'$1' can't be extracted" ;; - esac - fi - } - HISTSIZE=10000 SAVEHIST=10000 HISTFILE=~/.zsh_history diff --git a/modules/nixos/common/common-locale.ulu.nix b/modules/nixos/common/common-locale.ulu.nix index a3cef52..c6a899d 100644 --- a/modules/nixos/common/common-locale.ulu.nix +++ b/modules/nixos/common/common-locale.ulu.nix @@ -34,7 +34,6 @@ wants = [ "network-online.target" ]; }; console.font = "LatArCyrHeb-16"; - system.stateVersion = "25.05"; console.keyMap = "trq"; console.earlySetup = true; };