Skip to content

Commit a429cfd

Browse files
committed
Replace source with .
1 parent 4c11447 commit a429cfd

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

zsh/.p10k.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
emulate -L zsh -o extended_glob
2424

2525
# Unset all configuration options. This allows you to apply configuration changes without
26-
# restarting zsh. Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`.
26+
# restarting zsh. Edit ~/.p10k.zsh and type `. ~/.p10k.zsh`.
2727
unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR'
2828

2929
# Zsh >= 5.1 is required.

zsh/.zshrc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Initialization code that may require console input (password prompts, [y/n]
88
# confirmations, etc.) must go above this block; everything else may go below.
99
if [[ -f "${HOME}/.zgen/init.zsh" && -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
10-
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
10+
. "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
1111
P10K_DELAYED_SETUP=false
1212
else
1313
P10K_DELAYED_SETUP=true
@@ -90,7 +90,7 @@ if [ ! -d "${HOME}/.zgen" ]; then
9090
git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
9191
fi
9292
# This has to be after ZSH_CUSTOM, but before using the zgen command
93-
source "${HOME}/.zgen/zgen.zsh"
93+
. "${HOME}/.zgen/zgen.zsh"
9494

9595
# Which plugins would you like to load?
9696
# Standard plugins can be found in $ZSH/plugins/
@@ -177,7 +177,7 @@ fi
177177
# Delayed Powerlevel10k setup to avoid the warning about console output.
178178
# This has to be after "zgen save"
179179
if [[ "${P10K_DELAYED_SETUP}" = true && -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
180-
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
180+
. "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
181181
fi
182182

183183
# -----
@@ -248,7 +248,7 @@ zstyle ':completion:*' menu select=2
248248
# -----
249249

250250
# Handled by zgen
251-
# source "${ZSH}/oh-my-zsh.sh"
251+
# . "${ZSH}/oh-my-zsh.sh"
252252

253253
# User configuration
254254

@@ -306,7 +306,7 @@ bindkey \^U backward-kill-line
306306
# Expand glob expressions, subcommands and aliases
307307
# This variable serves as a blacklist
308308
GLOBALIAS_FILTER_VALUES=()
309-
# source ${ZSHLIBPATH}ohmyzsh/plugins/globalias/globalias.plugin.zsh
309+
# . ${ZSHLIBPATH}ohmyzsh/plugins/globalias/globalias.plugin.zsh
310310
globalias() {
311311
# Get last word to the left of the cursor:
312312
# (z) splits into words using shell parsing
@@ -368,7 +368,7 @@ if command -v gem &> /dev/null; then
368368
COLORLS_FILE_PATH="$(gem which colorls)"
369369
if [ -f "${COLORLS_FILE_PATH}" ]; then
370370
COLORLS_PATH="$(dirname "${COLORLS_FILE_PATH}")"
371-
source "${COLORLS_PATH}/tab_complete.sh"
371+
. "${COLORLS_PATH}/tab_complete.sh"
372372
alias lc='colorls -lA --sd'
373373
else
374374
# echo "Colorls was not found. Please install it with \"gem install colorls\" or remove it form .zshrc."
@@ -386,7 +386,7 @@ fi
386386
# POWERLINE_SCRIPT="/usr/share/powerline/bindings/zsh/powerline.zsh"
387387
# if [ -f $POWERLINE_SCRIPT ]; then
388388
# powerline-daemon -q
389-
# source "/usr/share/powerline/bindings/zsh/powerline.zsh"
389+
# . "/usr/share/powerline/bindings/zsh/powerline.zsh"
390390
# fi
391391

392392
# PowerShell telemetry has to be disabled with an environment variable before starting it.
@@ -395,11 +395,11 @@ export POWERSHELL_TELEMETRY_OPTOUT="1"
395395

396396
# Powerlevel10k configuration
397397
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
398-
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
398+
[[ ! -f ~/.p10k.zsh ]] || . ~/.p10k.zsh
399399

400400
# Add Snap icons to the launcher
401401
if [ -f "/etc/profile.d/apps-bin-path.sh" ]; then
402-
emulate sh -c "source /etc/profile.d/apps-bin-path.sh"
402+
emulate sh -c ". /etc/profile.d/apps-bin-path.sh"
403403
fi
404404

405405
# Fix command-line usage of LibreOffice

zsh/custom/physics.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if [ -f "${GEANT_SCRIPT}" ]; then
1717
PWD_BEFORE_GEANT4="$(pwd)"
1818
cd "/usr/local/bin" || return 1
1919
# shellcheck disable=SC1090
20-
source "${GEANT_SCRIPT}"
20+
. "${GEANT_SCRIPT}"
2121
cd "${PWD_BEFORE_GEANT4}" || return 1
2222
# PYTHON_VERSION_STR=$(python3 -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")
2323
# export PYTHONPATH="${PYTHONPATH}:/usr/local/lib/python${PYTHON_VERSION_STR}/site-packages"
@@ -35,7 +35,7 @@ export X509_CERT_DIR="${HOME}/.globus"
3535
ROOT_SCRIPT="${HOME}/Downloads/root/bin/thisroot.sh"
3636
if [ -f "${ROOT_SCRIPT}" ]; then
3737
# shellcheck disable=SC1090
38-
source "${ROOT_SCRIPT}"
38+
. "${ROOT_SCRIPT}"
3939
fi
4040
unset ROOT_SCRIPT
4141

0 commit comments

Comments
 (0)