Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
ampline
Advanced tools
Readme
amp up your command line.
assign variables to output from common commands
a great complement to tab completion
No longer will you find yourself copy-pasting long paths into git add
, or tab-completing deep directory structures.
npm -g install ampline
A simple example:
$ ls
1 amp
2 node_modules
3 package.json
4 readme.md
5 screenshots
$ cat 4
# executes cat readme.md
TODO write a readme. Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod.
$ amp echo "hi" >> 4
# executes echo "hi" >> readme.md
$ gs # this is an alias that uses `amp`
1 M readme.md
$ ga readme.md
1 M readme.md
$ git commit -m 'added hi to my readme.'
A more complicated example:
$ amp
$ amp vim 1 2 3-5
-p
regex will be saved to a variable)
$ amp -p "(.*)" ls -1
1 amp
2 node_modules
3 package.json
4 readme.md
5 screenshots
# let's view what the current variables are set to
$ amp
1 = amp
2 = node_modules
3 = package.json
4 = readme.md
5 = screenshots
Because you don't want to type amp
all over the place.
These are the aliases I use. Since I only just wrote this, there aren't that many. Based on these it shouldn't be too hard write/customize your own set of aliases.
# give me variable saving!
alias gs='amp -p "...(.*)$" git status -s'
alias gbr='amp -p " ? (?:remotes\\/)?(?:origin\\/)?(.*)$" git branch' # supports -a, -r flags
alias l='CLICOLOR_FORCE=1 amp -p "(.*)" ls -1'
alias find='amp -p "(.*)" find'
# give me variable expansion!
alias subl='amp subl'
alias ga='amp git add'
alias grm='amp git rm'
alias gco='amp git checkout'
alias gd='amp git diff'
alias gdh='amp git diff HEAD'
alias gunstage='amp git unstage'
alias cat='amp cat'
alias less='amp less'
alias mocha='amp mocha'
@peterlyon suggested I add this photo!
FAQs
amp up your command line — assign variables to output from common commands. a great complement to tab completion
The npm package ampline receives a total of 4 weekly downloads. As such, ampline popularity was classified as not popular.
We found that ampline demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.