Alias.sh: for finding, sharing and storing bash aliases
31–40 of 55 posts
Re: Alias.sh: for finding, sharing and storing bash aliases
#32I eschew aliases, using them only when necessary, e.g. when changing directory. There's many places in Unix where a knowledgeable user can kick off a command and in many aliases won't work. This gets annoying and is solved by having ~/bin/... wherever possible. The overhead is minimal, many being one-line of code starting with exec.
Re: Alias.sh: for finding, sharing and storing bash aliases
#33Re: Alias.sh: for finding, sharing and storing bash aliases
#34Re: Alias.sh: for finding, sharing and storing bash aliases
#35Re: Alias.sh: for finding, sharing and storing bash aliases
#36Re: Alias.sh: for finding, sharing and storing bash aliases
#37> alias servethis="python -c 'import SimpleHTTPServer; SimpleHTTPServer.test()'"
python -m SimpleHTTPServer # python 3
python -m http.server # Python 3
> extract () { /* useless stuff */ } tar xfRe: Alias.sh: for finding, sharing and storing bash aliases
#38Edit: I just found the feature on the site and am happy now. (:
Re: Alias.sh: for finding, sharing and storing bash aliases
#39I really like the idea, but I'd do even more so if I could install a cronjob to automatically download a file with all aliases I previously added to my online profile. Of course this comes with security implications you'd have to sort out. Please do this (or let me help you with it). Edit: I just found the feature on the site and am happy now. (:
source https://alias.sh/user/7/alias)
This will source it every time you login. Otherwise you could easily put the first command on your profile in a cronjob to run one daily etc.
Re: Alias.sh: for finding, sharing and storing bash aliases
#40Top two are wrong… Not a good thing. It's always the same badly written snippets that get copy-pasted across websites without anyone really understanding what it does (hence the copy/paste). > alias servethis="python -c 'import SimpleHTTPServer; SimpleHTTPServer.test()'" python -m SimpleHTTPServer # python 3 python -m http.server # Python 3 > extract () { /* useless stuff */ } tar xf