From e9c80f0ae91af9804ed16f54997ff05acac07949 Mon Sep 17 00:00:00 2001 From: nnduc Date: Mon, 23 Feb 2026 08:00:11 +0700 Subject: [PATCH] up term --- .zshrc | 25 ++++++++++++++++++++----- i3/config | 5 +++-- sway/config | 2 +- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/.zshrc b/.zshrc index 6c4d30a..4ea8e93 100644 --- a/.zshrc +++ b/.zshrc @@ -1,3 +1,10 @@ +# 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 + HISTFILE=~/.histfile HISTSIZE=2000 SAVEHIST=2000 @@ -6,17 +13,25 @@ bindkey -v # End of lines configured by zsh-newuser-install # The following lines were added by compinstall bindkey "\e[3~" delete-char -autoload -Uz compinit -compinit +autoload -Uz compinit && compinit +zstyle ':completion:*' menu select # End of lines added by compinstall -export EDITOR=nvim -export TERM='xterm-256color' +source /home/nnduc/git/powerlevel10k/powerlevel10k.zsh-theme -alias ls='ls --color=auto' zshaddhistory() { whence ${${(z)1}[1]} >/dev/null || return 2 } +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +export EDITOR=nvim +export TERM='xterm-256color' +export PATH="$HOME/.local/bin:$PATH" + +alias ls='ls --color=auto' +alias doc='docker-compose' +source ~/git/zsh-autosuggestions/zsh-autosuggestions.zsh diff --git a/i3/config b/i3/config index 537b52c..8408e8c 100644 --- a/i3/config +++ b/i3/config @@ -11,6 +11,7 @@ set $mod Mod4 set $wallpaper '/data/sync/images/wallpapers/suse.png' +set $term 'xfce4-terminal' # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:NotoSans 12 @@ -87,9 +88,9 @@ floating_modifier $mod #tiling_drag modifier titlebar #xrandr --output HDMI-2 --auto --right-of eDP1 -# start a 3terminal +# start a terminal #bindsym $mod+Return exec i3-sensible-terminal -bindsym $mod+Return exec alacritty +bindsym $mod+Return exec $term # kill focused window bindsym $mod+Shift+q kill diff --git a/sway/config b/sway/config index c921512..073cd05 100644 --- a/sway/config +++ b/sway/config @@ -14,7 +14,7 @@ set $mod Mod4 #set $up k #set $right l # Your preferred terminal emulator -set $term alacritty +set $term xfce4-terminal # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on.