diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-11-06 16:19:47 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-11-06 16:19:47 -0600 |
commit | a07a0b9d908ac883d82bfc6d90a7d514ad9956c7 (patch) | |
tree | c6657964086fdd67a7a3a38a0e2ab06a97da34a1 /dot_config/zsh | |
parent | add kitty back but only when not running in SSH (diff) | |
download | dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar.gz dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar.bz2 dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar.lz dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar.xz dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar.zst dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.zip |
Make shellcheck stop complaining
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'dot_config/zsh')
-rw-r--r-- | dot_config/zsh/aliasrc | 11 | ||||
-rw-r--r-- | dot_config/zsh/dot_p10k.zsh | 2 | ||||
-rw-r--r-- | dot_config/zsh/dot_zshenv | 2 | ||||
-rw-r--r-- | dot_config/zsh/dot_zshrc | 1 |
4 files changed, 9 insertions, 7 deletions
diff --git a/dot_config/zsh/aliasrc b/dot_config/zsh/aliasrc index 37a6f17..5b933ed 100644 --- a/dot_config/zsh/aliasrc +++ b/dot_config/zsh/aliasrc @@ -7,14 +7,15 @@ [ -x "$(command -v code-insiders)" ] && [ ! -x "$(command -v code)" ] && alias code="code-insiders" # Use $XINITRC variable if file exists. -[ -f "$XINITRC" ] && alias startx="startx $XINITRC" +[ -f "$XINITRC" ] && alias startx='startx "$XINITRC"' # sudo not required for some system commands for x in mount umount sv emerge apt pacman updatedb su ; do - alias $x="sudo $x" + # shellcheck disable=SC2139 + alias $x='sudo $x' done -if command -v doas &>/dev/null +if command -v doas >/dev/null 2>&1 then alias sudo='doas' else @@ -54,8 +55,8 @@ alias \ trem="transmission-remote" \ YT="youtube-viewer" \ sdn="sudo shutdown -h now" \ - e="$EDITOR" \ - v="$EDITOR" \ + e="\$EDITOR" \ + v="\$EDITOR" \ em="sudo emerge" \ p="sudo pacman" \ xi="sudo xbps-install" \ diff --git a/dot_config/zsh/dot_p10k.zsh b/dot_config/zsh/dot_p10k.zsh index 742e159..8c94331 100644 --- a/dot_config/zsh/dot_p10k.zsh +++ b/dot_config/zsh/dot_p10k.zsh @@ -1,4 +1,4 @@ -# Generated by Powerlevel10k configuration wizard on 2023-11-09 at 16:04 CST. +# Generated by Powerlevel10k configuration wizard on 1970-01-01 at 00:00 UTC. # Based on romkatv/powerlevel10k/config/p10k-lean.zsh. # Wizard options: nerdfont-complete + powerline, small icons, unicode, lean, 24h time, # 2 lines, disconnected, no frame, sparse, few icons, concise, transient_prompt, diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index cf04d34..19d3b96 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env zsh # profile file. Runs on login. Environmental variables are set here. # If you don't plan on reverting to bash, you can remove the link in ~/.profile diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index b8ebcb0..a592706 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -1,3 +1,4 @@ +#!/usr/bin/env zsh # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. |