changes
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
TERM = "xterm-256color"
|
TERM = "xterm-256color"
|
||||||
|
|
||||||
[font]
|
[font]
|
||||||
size = 16
|
size = 18
|
||||||
|
|
||||||
[font.normal]
|
[font.normal]
|
||||||
family = "VictorMono Nerd Font"
|
family = "VictorMono Nerd Font"
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ output "eDP-1" {
|
|||||||
mode "1920x1200@60"
|
mode "1920x1200@60"
|
||||||
|
|
||||||
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
// 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:
|
// Transform allows to rotate the output counter-clockwise, valid values are:
|
||||||
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
||||||
|
|||||||
+30
-54
@@ -21,6 +21,17 @@ SAVEHIST=10000
|
|||||||
# Options to make history nicer
|
# Options to make history nicer
|
||||||
setopt HIST_IGNORE_DUPS HIST_IGNORE_SPACE
|
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
|
# 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)
|
# Remove right side prompt (like time)
|
||||||
unset RPROMPT
|
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
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
||||||
alias dot='cd ~/code/opalfiles'
|
alias dot='cd ~/Code/opalfiles'
|
||||||
alias ans='cd ~/code/ansible'
|
alias ans='cd ~/Code/ansible'
|
||||||
|
|
||||||
alias v='nvim'
|
alias v='nvim'
|
||||||
alias vim='nvim'
|
alias vim='nvim'
|
||||||
alias vi='nvim'
|
alias vi='nvim'
|
||||||
|
|
||||||
# DNF
|
# Package Manager
|
||||||
alias din='sudo dnf install'
|
alias pin='sudo pacman -S'
|
||||||
alias dre='sudo dnf remove'
|
alias pre='sudo pacman -R'
|
||||||
alias dup='sudo dnf update'
|
alias pup='sudo pacman -Syu'
|
||||||
alias dse='dnf search'
|
alias pse='pacman -Ss'
|
||||||
|
|
||||||
# alias to show the date
|
# alias to show the date
|
||||||
alias da='date "+%Y-%m-%d %A %T %Z"'
|
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='nvim ~/Code/arch-ansible/roles/packages/tasks/main.yml'
|
||||||
alias pkg-aur='nvim ~/Code/arch-ansible/scripts/aur-pkg-install.sh'
|
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
|
# Wireguard
|
||||||
alias wgup='nmcli connection up wg0'
|
alias wgup='nmcli connection up wg0'
|
||||||
alias wgdown='nmcli connection down wg0'
|
alias wgdown='nmcli connection down wg0'
|
||||||
|
|
||||||
keys()
|
#######################################################
|
||||||
{
|
# FUNCTIONS
|
||||||
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval ry_ecdsa)"
|
#######################################################
|
||||||
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval id_rsa)"
|
|
||||||
}
|
|
||||||
|
|
||||||
keys
|
|
||||||
|
|
||||||
|
|
||||||
apply() {
|
apply() {
|
||||||
@@ -195,3 +162,12 @@ shred-dir() {
|
|||||||
rm -rf "$dir"
|
rm -rf "$dir"
|
||||||
echo "Done."
|
echo "Done."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
keys()
|
||||||
|
{
|
||||||
|
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval ry_ecdsa)"
|
||||||
|
eval "$(keychain --quiet --absolute --dir ~/.config/keychain --eval id_rsa)"
|
||||||
|
}
|
||||||
|
|
||||||
|
keys
|
||||||
|
|
||||||
|
|||||||
@@ -15,3 +15,4 @@ flycheck-packages.el
|
|||||||
*.log
|
*.log
|
||||||
.config/zsh/.zcompdump
|
.config/zsh/.zcompdump
|
||||||
.local/bin/claude
|
.local/bin/claude
|
||||||
|
.config/systemd/user/default.target.wants/
|
||||||
|
|||||||
Reference in New Issue
Block a user