mirror of https://github.com/MKRhere/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Muthu Kumar
195f6d54b0
|
6 years ago | |
---|---|---|
.. | ||
README.md | 6 years ago | |
mkr.sh | 6 years ago |
README.md
mkr.sh
I made this script for my own convenience. Use at your own risk. Plenty of comments are supplied for each command. If you don't understand something, please don't use it.
Install
Automatically add this script to your ~/.bashrc
or ~/.zshrc
:
mkdir ~/.mkr && curl https://raw.githubusercontent.com/MKRhere/wiki/master/scripts/mkr.sh -o ~/.mkr/mkr.sh
# if using bash
echo "source ~/.mkr/mkr.sh" >> ~/.bashrc
# or zsh
echo "source ~/.mkr/mkr.sh" >> ~/.zshrc
# To start using right away without waiting for shell restart
source ~/.mkr/mkr.sh
# updating script
mkr-update
Commands
- General
cls
: Clears screenclip
: Copies to clipboard
- apt
i <package-names...>
: Accepts prompts and installs packagesinstall <package-names...>
: Installs packages without auto-acceptingupdate
: Equivalent toapt-get update
purge <package-names...>
: Removes packagesar
/autoremove
: Equivalent toapt autoremove
- Directories
mkd </path/to/dir>
: Creates dir at given path and changes cwd to itrmd [dir]
: Removes current directory and moves up OR removes directory by given name
- git
git graph
: Opens a pretty commit log graphcommit <commit-message>
: Adds all untracked files and commits thempush <commit-message> [remote branch]
: Adds all untracked files, commits and pushes themdotgit [commands...]
: Requires a~/.dotfiles
bare repo to exist-u
to commit to the dotgit repo-p
to push the dotgit repo to remote
- systemctl
status <daemon>
start <daemon>
stop <daemon>