Skip to content

Commit

Permalink
Merge pull request #1123 from polyglotdev/correct-obsidian-shell-script
Browse files Browse the repository at this point in the history
✨ Added unaliasing to pattern setup
  • Loading branch information
danielmiessler authored Nov 9, 2024
2 parents 73a0e38 + de61e56 commit 76d6788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ for pattern_file in ~/.config/fabric/patterns/*; do
# Get the base name of the file (i.e., remove the directory path)
pattern_name=$(basename "$pattern_file")

# Unalias any existing alias with the same name
unalias "$pattern_name" 2>/dev/null

# Define a function dynamically for each pattern
eval "
$pattern_name() {
Expand Down

0 comments on commit 76d6788

Please sign in to comment.