mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-29 18:38:15 +00:00
[shell-common] Add shellcheck lines for all shell files
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# History
|
||||
mkdir -p "${XDG_STATE_HOME}"/bash
|
||||
export HISTFILE="${XDG_STATE_HOME}"/bash/history
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
# shellcheck shell=bash
|
||||
# SSH completion based on ssh config
|
||||
[ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config* | grep -v "[?*]" | cut -d " " -f2- | tr ' ' '\n')" scp sftp ssh
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# Override application locations to fix XDG
|
||||
export ANSIBLE_HOME="$XDG_DATA_HOME"/ansible
|
||||
export LESSHISTFILE="$XDG_STATE_HOME"/less/history
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# shellcheck shell=bash
|
||||
# AWS functions
|
||||
|
||||
# Get the list of AWS profiles
|
||||
function awsprofiles() {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# shellcheck shell=bash
|
||||
# Go stuff
|
||||
|
||||
export GOPATH=$XDG_DATA_HOME/go/
|
||||
export PATH=${GOPATH}bin:$PATH
|
||||
if [ -z ${GOROOT+x} ] && [ -d /usr/local/go ]; then
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# Python stuff
|
||||
|
||||
export POETRY_VIRTUALENVS_IN_PROJECT=true
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# shellcheck shell=bash
|
||||
# Rust stuff
|
||||
|
||||
if [ -f $HOME/.cargo/env ]; then
|
||||
source $HOME/.cargo/env
|
||||
fi
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=zsh
|
||||
# History
|
||||
mkdir -p "${XDG_STATE_HOME}/zsh"
|
||||
HISTFILE="${XDG_STATE_HOME}/zsh/history"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=zsh
|
||||
# Zsh specific aliases
|
||||
# Mostly suffix and global aliases
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=zsh
|
||||
fpath+=($XDG_CONFIG_HOME/zsh/completions)
|
||||
|
||||
autoload -Uz compinit
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=zsh
|
||||
# Source shell common
|
||||
for f in ~/.config/shell-common/*.sh; do
|
||||
source $f
|
||||
|
||||
Reference in New Issue
Block a user