From a07a0b9d908ac883d82bfc6d90a7d514ad9956c7 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 6 Nov 2024 16:19:47 -0600 Subject: Make shellcheck stop complaining Signed-off-by: Matt Strapp --- dot_config/zsh/aliasrc | 11 ++++++----- dot_config/zsh/dot_p10k.zsh | 2 +- dot_config/zsh/dot_zshenv | 2 +- dot_config/zsh/dot_zshrc | 1 + 4 files changed, 9 insertions(+), 7 deletions(-) (limited to 'dot_config/zsh') 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. -- cgit v1.2.3