ZSH on speed
This commit is contained in:
parent
1930006555
commit
9f5b524438
8 changed files with 88 additions and 31 deletions
|
@ -4,6 +4,8 @@
|
|||
<dict>
|
||||
<key>AlternateMouseScroll</key>
|
||||
<true/>
|
||||
<key>Command</key>
|
||||
<string></string>
|
||||
<key>CommandSelection</key>
|
||||
<true/>
|
||||
<key>Control</key>
|
||||
|
@ -558,6 +560,18 @@
|
|||
<true/>
|
||||
<key>ASCII Ligatures</key>
|
||||
<false/>
|
||||
<key>AWDS Pane Directory</key>
|
||||
<string></string>
|
||||
<key>AWDS Pane Option</key>
|
||||
<string>No</string>
|
||||
<key>AWDS Tab Directory</key>
|
||||
<string></string>
|
||||
<key>AWDS Tab Option</key>
|
||||
<string>No</string>
|
||||
<key>AWDS Window Directory</key>
|
||||
<string></string>
|
||||
<key>AWDS Window Option</key>
|
||||
<string>No</string>
|
||||
<key>Ambiguous Double Width</key>
|
||||
<false/>
|
||||
<key>Ansi 0 Color</key>
|
||||
|
@ -756,7 +770,7 @@
|
|||
<key>Columns</key>
|
||||
<integer>80</integer>
|
||||
<key>Command</key>
|
||||
<string></string>
|
||||
<string>/bin/zsh</string>
|
||||
<key>Cursor Boost</key>
|
||||
<real>0.0</real>
|
||||
<key>Cursor Color</key>
|
||||
|
@ -801,7 +815,7 @@
|
|||
<key>Cursor Type</key>
|
||||
<integer>0</integer>
|
||||
<key>Custom Command</key>
|
||||
<string>No</string>
|
||||
<string>Custom Shell</string>
|
||||
<key>Custom Directory</key>
|
||||
<string>No</string>
|
||||
<key>Default Bookmark</key>
|
||||
|
|
36
.config/spacebar/spacebarrc
Executable file
36
.config/spacebar/spacebarrc
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
spacebar -m config position top
|
||||
spacebar -m config display main
|
||||
spacebar -m config height 26
|
||||
spacebar -m config title on
|
||||
spacebar -m config spaces on
|
||||
spacebar -m config clock on
|
||||
spacebar -m config power off
|
||||
spacebar -m config padding_left 20
|
||||
spacebar -m config padding_right 20
|
||||
spacebar -m config spacing_left 25
|
||||
spacebar -m config spacing_right 15
|
||||
spacebar -m config text_font "Menlo:Regular:14.0"
|
||||
spacebar -m config icon_font "Font Awesome 6 Free:Solid:11.0"
|
||||
spacebar -m config background_color 0xff202020
|
||||
spacebar -m config foreground_color 0xffa8a8a8
|
||||
spacebar -m config power_icon_color 0xffcd950c
|
||||
spacebar -m config battery_icon_color 0xffd75f5f
|
||||
spacebar -m config dnd_icon_color 0xffa8a8a8
|
||||
spacebar -m config clock_icon_color 0xffa8a8a8
|
||||
spacebar -m config power_icon_strip
|
||||
spacebar -m config space_icon •
|
||||
spacebar -m config space_icon_color 0xffffab91
|
||||
spacebar -m config space_icon_color_secondary 0xff78c4d4
|
||||
spacebar -m config space_icon_color_tertiary 0xfffff9b0
|
||||
spacebar -m config space_icon_strip 1 2 3 4 5 6 7 8 9 10
|
||||
spacebar -m config spaces_for_all_displays on
|
||||
spacebar -m config clock_icon
|
||||
spacebar -m config dnd_icon
|
||||
spacebar -m config clock_format "%d/%m/%y %R"
|
||||
spacebar -m config right_shell on
|
||||
spacebar -m config right_shell_icon
|
||||
spacebar -m config right_shell_command "echo $(whoami)"
|
||||
|
||||
echo "spacebar configuration loaded.."
|
|
@ -1,3 +1,4 @@
|
|||
tap "cmacrae/formulae"
|
||||
tap "d12frosted/emacs-plus"
|
||||
tap "gcenx/wine"
|
||||
tap "homebrew/bundle"
|
||||
|
@ -19,6 +20,7 @@ brew "bottom"
|
|||
brew "python@3.9"
|
||||
brew "coreutils"
|
||||
brew "cask"
|
||||
brew "chafa"
|
||||
brew "cmigemo"
|
||||
brew "cmus"
|
||||
brew "exa"
|
||||
|
@ -64,7 +66,7 @@ brew "pre-commit"
|
|||
brew "ripgrep"
|
||||
brew "rtags"
|
||||
brew "ruby"
|
||||
brew "rust"
|
||||
brew "rustup-init"
|
||||
brew "shellcheck"
|
||||
brew "sloccount"
|
||||
brew "smartmontools"
|
||||
|
@ -73,12 +75,14 @@ brew "subversion"
|
|||
brew "thefuck"
|
||||
brew "tmate"
|
||||
brew "tmux"
|
||||
brew "tokei"
|
||||
brew "tree"
|
||||
brew "wget"
|
||||
brew "yadm"
|
||||
brew "yarn"
|
||||
brew "zig"
|
||||
brew "zoxide"
|
||||
brew "cmacrae/formulae/spacebar"
|
||||
brew "d12frosted/emacs-plus/emacs-plus@28", args: ["with-modern-doom3-icon", "with-native-comp"]
|
||||
brew "kdb424/kdb424/pmm"
|
||||
brew "koekeishiya/formulae/skhd"
|
||||
|
@ -92,6 +96,7 @@ cask "deadbeef-nightly"
|
|||
cask "discord-canary"
|
||||
cask "eqmac"
|
||||
cask "firefox"
|
||||
cask "font-fontawesome"
|
||||
cask "font-jetbrains-mono-nerd-font"
|
||||
cask "font-ubuntu-mono"
|
||||
cask "font-ubuntu-mono-nerd-font"
|
||||
|
|
|
@ -1720,7 +1720,7 @@
|
|||
# - verbose: Enable instant prompt and print a warning when detecting console output during
|
||||
# zsh initialization. Choose this if you've never tried instant prompt, haven't
|
||||
# seen the warning, or if you are unsure what this all means.
|
||||
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
|
||||
typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose
|
||||
|
||||
# Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
|
||||
# For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
|
||||
|
|
2
.yabairc
2
.yabairc
|
@ -28,10 +28,12 @@ CNORM=$(echo $color1 | sed 's/#//')
|
|||
CINSE=$(echo $foreground | sed 's/#//')
|
||||
|
||||
# Status bar
|
||||
# yabai -m config external_bar all:26:0
|
||||
# yabai -m config status_bar on
|
||||
# yabai -m config status_bar_background_color 0xff$CBACK
|
||||
# yabai -m config status_bar_foreground_color 0xff$CFORE
|
||||
|
||||
|
||||
# Configure borders
|
||||
yabai -m config window_border off
|
||||
yabai -m config window_border_width 2
|
||||
|
|
|
@ -158,6 +158,9 @@ if command -v grim > /dev/null 2>&1; then
|
|||
elif command -v scrot > /dev/null 2>&1; then
|
||||
alias scrot='scrot desktop-%Y%m%d%H%M.png -q 100 -cd 3'
|
||||
fi
|
||||
if command -v cargo > /dev/null 2>&1; then
|
||||
alias cargo-update="cargo install $(cargo install --list | egrep '^[a-z0-9_-]+ v[0-9.]+:$' | cut -f1 -d' ')"
|
||||
fi
|
||||
if [ "$IS_MAC" = 1 ]; then
|
||||
alias xclip='pbcopy'
|
||||
alias ding="osascript -e 'display notification \"command done\"'"
|
||||
|
|
1
.zshenv
1
.zshenv
|
@ -59,3 +59,4 @@ export SSH_AUTH_SOCK
|
|||
|
||||
export PMM_WORLD="~/.config/worldedit/$(hostname)"
|
||||
export HOMEBREW_BREWFILE="~/.config/worldedit/$(hostname)"
|
||||
. "$HOME/.cargo/env"
|
||||
|
|
50
.zshrc
50
.zshrc
|
@ -1,15 +1,29 @@
|
|||
# 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.
|
||||
# #!/bin/zsh
|
||||
# Sets term colors, and fixes problems with SSH for pywal/wpg
|
||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||
SESSION_TYPE=remote/ssh
|
||||
else
|
||||
case $(ps -o comm= -p $PPID) in
|
||||
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
|
||||
esac
|
||||
# Only change term colors for local system
|
||||
if [ -f ${XDG_CONFIG_HOME}/wpg/sequences ]; then
|
||||
command cat ${XDG_CONFIG_HOME}/wpg/sequences
|
||||
fi
|
||||
if [ -f ~/.cache/wal/sequences ]; then
|
||||
command cat ${HOME}/.cache/wal/sequences
|
||||
fi
|
||||
fi
|
||||
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
|
||||
|
||||
# #!/bin/zsh
|
||||
|
||||
# If running from tty1 start sway
|
||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||
exec dbus-launch --sh-syntax --exit-with-session /usr/bin/sway
|
||||
if command -v sway > /dev/null 2>&1; then
|
||||
exec dbus-launch --sh-syntax --exit-with-session /usr/bin/sway
|
||||
fi
|
||||
fi
|
||||
|
||||
# ohmyzsh config
|
||||
|
@ -20,7 +34,7 @@ VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true
|
|||
VI_MODE_SET_CURSOR=true
|
||||
|
||||
# Set ohmyzsh plugins
|
||||
plugins=(sprunge fzf thefuck)
|
||||
plugins=(fzf)
|
||||
|
||||
# Basic zsh config.
|
||||
ZDOTDIR=${ZDOTDIR:-${HOME}}
|
||||
|
@ -87,9 +101,6 @@ bindkey "\eOd" emacs-backward-word
|
|||
bindkey "\e\e[C" forward-word
|
||||
bindkey "\e\e[D" backward-word
|
||||
bindkey "\e[Z" reverse-menu-complete # Shift+Tab
|
||||
# for rxvt
|
||||
#bindkey "\e[7~" beginning-of-line # Home
|
||||
#bindkey "\e[8~" end-of-line # End
|
||||
# for non RH/Debian xterm, can't hurt for RH/Debian xterm
|
||||
bindkey "\eOH" beginning-of-line # Home
|
||||
bindkey "\eOF" end-of-line # End
|
||||
|
@ -99,24 +110,6 @@ bindkey "\eOF" end-of-line # End
|
|||
# History
|
||||
bindkey "^[[A" history-beginning-search-backward
|
||||
bindkey "^[[B" history-beginning-search-forward
|
||||
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" history-beginning-search-backward
|
||||
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" history-beginning-search-forward
|
||||
|
||||
# Sets term colors, and fixes problems with SSH for pywal/wpg
|
||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||
SESSION_TYPE=remote/ssh
|
||||
else
|
||||
case $(ps -o comm= -p $PPID) in
|
||||
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
|
||||
esac
|
||||
# Only change term colors for local system
|
||||
if [ -f ${XDG_CONFIG_HOME}/wpg/sequences ]; then
|
||||
command cat ${XDG_CONFIG_HOME}/wpg/sequences
|
||||
fi
|
||||
if [ -f ~/.cache/wal/sequences ]; then
|
||||
command cat ${HOME}/.cache/wal/sequences
|
||||
fi
|
||||
fi
|
||||
|
||||
if command -v thefuck > /dev/null 2>&1; then
|
||||
eval $(thefuck --alias)
|
||||
|
@ -153,3 +146,6 @@ fi
|
|||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
# Rustup
|
||||
[[ ! -f ~/.cargo/env ]] || source ~/.cargo/env
|
||||
|
|
Loading…
Add table
Reference in a new issue