Last active
December 17, 2019 16:34
-
-
Save aal89/58e254efeb0fca76db6daa521fec40f9 to your computer and use it in GitHub Desktop.
Revisions
-
aal89 revised this gist
Dec 17, 2019 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ alias gp='function __gp() { (python3 ~/Documents/python/$1.py $(shift;printf "$*") 2>/dev/null) || echo "File not found or errors occurred."; unset -f __gp; }; __gp' # (assumption hiworld.py is an actual file) # # usage: gp hiworld # usage: gp sub/dir/hiworld arg0 arg1 # -
aal89 revised this gist
Dec 17, 2019 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,7 @@ alias gp='function __gp() { (python3 ~/Documents/python/$1.py $(shift;printf "$*") 2>/dev/null) || echo "File not found or errors occurred."; unset -f __gp; }; __gp' # usage: gp hiworld (assumption hiworld.py is an actual file) # output: whatever the script outputs # usage: gp sub/dir/hiworld (assumption sub/dir/hiworld.py is an actual file) # output: whatever the script outputs -
aal89 revised this gist
Dec 17, 2019 . No changes.There are no files selected for viewing
-
aal89 created this gist
Dec 17, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ alias gp='function __gp() { (python3 ~/Documents/python/$1.py $(shift;printf "$*") 2>/dev/null) || echo "File not found or errors occurred."; unset -f __gp; }; __gp' # usage: gp hiworld (assumption hiworld.py is an actual file) # output: whatever the script outputs