blob: 6d9e8cdcf2b29ba2b1177063d492cd8ae95ffa96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
# Removing unecessary comments and documentation
raw=$(cat $HOME/.config/aliasrc | tail -n +17 "$HOME/.config/aliasrc" | sed "s/^|\s*//g;
s/\(.*\)|\(.*\)|\(.*\)|/\1|\2|\3/g;
s/\s*$//g;
/^$/d")
# #---zsh---# #
echo "$raw" | sed "s/^/alias\ /;
s/\s*|\s*/=\"/;
s/^.*-*+-*=\"$//;
s/\s*|$/\"/" > $HOME/.cache/zsh-aliases
|