changes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
TERM = "xterm-256color"
|
||||
|
||||
[font]
|
||||
size = 16
|
||||
size = 18
|
||||
|
||||
[font.normal]
|
||||
family = "VictorMono Nerd Font"
|
||||
|
||||
@@ -99,7 +99,7 @@ output "eDP-1" {
|
||||
mode "1920x1200@60"
|
||||
|
||||
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
||||
scale 1
|
||||
// scale 1
|
||||
|
||||
// Transform allows to rotate the output counter-clockwise, valid values are:
|
||||
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
||||
|
||||
@@ -21,6 +21,17 @@ SAVEHIST=10000
|
||||
# Options to make history nicer
|
||||
setopt HIST_IGNORE_DUPS HIST_IGNORE_SPACE
|
||||
|
||||
# Auto capitalize
|
||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||
|
||||
#######################################################
|
||||
# KEYBINDS
|
||||
#######################################################
|
||||
|
||||
autoload -U select-word-style
|
||||
select-word-style bash
|
||||
bindkey '^[[1;3D' backward-word # Alt+Left
|
||||
bindkey '^[[1;3C' forward-word # Alt+Right
|
||||
|
||||
#######################################################
|
||||
# PROMPT
|
||||
@@ -43,33 +54,22 @@ PROMPT='%F{cyan}[%n@%m %F{yellow}%~%f%F{green}${vcs_info_msg_0_}%f%F{cyan}]%f
|
||||
# Remove right side prompt (like time)
|
||||
unset RPROMPT
|
||||
|
||||
#######################################################
|
||||
# GOPASS
|
||||
#######################################################
|
||||
|
||||
# Gopass aliases
|
||||
alias gpi='gopass insert --multiline'
|
||||
alias gpl='gopass ls'
|
||||
alias gps='gopass show'
|
||||
alias gpsclip='gopass show --clip'
|
||||
alias gpe='gopass edit'
|
||||
|
||||
#######################################################
|
||||
# ALIAS
|
||||
#######################################################
|
||||
|
||||
alias dot='cd ~/code/opalfiles'
|
||||
alias ans='cd ~/code/ansible'
|
||||
alias dot='cd ~/Code/opalfiles'
|
||||
alias ans='cd ~/Code/ansible'
|
||||
|
||||
alias v='nvim'
|
||||
alias vim='nvim'
|
||||
alias vi='nvim'
|
||||
|
||||
# DNF
|
||||
alias din='sudo dnf install'
|
||||
alias dre='sudo dnf remove'
|
||||
alias dup='sudo dnf update'
|
||||
alias dse='dnf search'
|
||||
# Package Manager
|
||||
alias pin='sudo pacman -S'
|
||||
alias pre='sudo pacman -R'
|
||||
alias pup='sudo pacman -Syu'
|
||||
alias pse='pacman -Ss'
|
||||
|
||||
# alias to show the date
|
||||
alias da='date "+%Y-%m-%d %A %T %Z"'
|
||||
@@ -131,46 +131,13 @@ alias h='history 1'
|
||||
alias pkg='nvim ~/Code/arch-ansible/roles/packages/tasks/main.yml'
|
||||
alias pkg-aur='nvim ~/Code/arch-ansible/scripts/aur-pkg-install.sh'
|
||||
|
||||
#######################################################
|
||||
# FUNCTIONS
|
||||
#######################################################
|
||||
|
||||
# Reset all USB devices after suspend/hibernate if they vanish
|
||||
usbreset() {
|
||||
echo "Re-authorizing all USB devices..."
|
||||
for d in /sys/bus/usb/devices/*/authorized; do
|
||||
if [[ -w $d ]]; then
|
||||
echo 0 | sudo tee "$d" >/dev/null
|
||||
echo 1 | sudo tee "$d" >/dev/null
|
||||
fi
|
||||
done
|
||||
echo "Done. Check with lsusb."
|
||||
}
|
||||
|
||||
#######################################################
|
||||
# KEYBINDS
|
||||
#######################################################
|
||||
|
||||
autoload -U select-word-style
|
||||
select-word-style bash
|
||||
bindkey '^[[1;3D' backward-word # Alt+Left
|
||||
bindkey '^[[1;3C' forward-word # Alt+Right
|
||||
|
||||
#######################################################
|
||||
# WORK
|
||||
#######################################################
|
||||
|
||||
# Wireguard
|
||||
alias wgup='nmcli connection up wg0'
|
||||
alias wgdown='nmcli connection down wg0'
|
||||
|
||||
keys()
|
||||
{
|
||||
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval ry_ecdsa)"
|
||||
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval id_rsa)"
|
||||
}
|
||||
|
||||
keys
|
||||
#######################################################
|
||||
# FUNCTIONS
|
||||
#######################################################
|
||||
|
||||
|
||||
apply() {
|
||||
@@ -195,3 +162,12 @@ shred-dir() {
|
||||
rm -rf "$dir"
|
||||
echo "Done."
|
||||
}
|
||||
|
||||
keys()
|
||||
{
|
||||
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval ry_ecdsa)"
|
||||
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval id_rsa)"
|
||||
}
|
||||
|
||||
keys
|
||||
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -15,3 +15,4 @@ flycheck-packages.el
|
||||
*.log
|
||||
.config/zsh/.zcompdump
|
||||
.local/bin/claude
|
||||
.config/systemd/user/default.target.wants/
|
||||
|
||||
Reference in New Issue
Block a user