File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949
5050# ## General ###
5151
52- # List aliases and functions contained in this file, based on GitHub main
53- # branch
52+ # List aliases and functions contained in this file. If the file is not found
53+ # in the home directory it is loaded from GitHub
5454
55- alias listshtweaks=' tweaksfile=$( curl -s https://raw.githubusercontent.com/lortordermur/lto-shtweaks/main/lto-shtweaks.sh) && echo $tweaksfile | grep "^alias " | cut -d "=" -f 1 | grep -v "^#alias" && echo $tweaksfile | grep " () {$" | tr -d "{"'
55+ alias listshtweaks=' filename="$(realpath ~)/lto-shtweaks.sh"; [ -r "$filename" ] && content=$(cat $filename); [ ! -r "$filename" ] && content=$( curl -s https://raw.githubusercontent.com/lortordermur/lto-shtweaks/main/lto-shtweaks.sh); echo $content | grep "^alias " | cut -d "=" -f 1 | grep -v "^#alias" && echo $content | grep " () {$" | tr -d "{"'
5656
5757# System information summary (requires inxi installed)
5858
You can’t perform that action at this time.
0 commit comments