Last active
September 9, 2016 11:18
-
-
Save nickdotht/dc13c12c5ad0760931d903ac86991add to your computer and use it in GitHub Desktop.
This file contains 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 characters
#!/bin/sh | |
config=~/.zshrc | |
echo "" >> ${config} | |
echo "# Shortcuts provided by Nick Rameau (@r4meau | 42)" >> ${config} | |
echo "# Remove those two lines below if you're not using a 42 computer" >> ${config} | |
echo "alias gg=\"gcc -Wall -Wextra -Werror\"" >> ${config} | |
echo "alias nn=\"norminette -R CheckForbiddenSourceHeader\"" >> ${config} | |
echo "" >> ${config} | |
echo "alias ll=\"ls -l\"" >> ${config} | |
echo "alias la=\"ls -la\"" >> ${config} | |
echo "alias l=\"ls\"" >> ${config} | |
echo "alias gc=\"git clone\"" >> ${config} | |
echo "alias gp=\"git push origin master\"" >> ${config} | |
echo "alias gcm=\"git commit -m\"" >> ${config} | |
echo "alias gs=\"git status\"" >> ${config} | |
echo "alias ga=\"git add\"" >> ${config} | |
echo "alias md=\"mkdir\"" >> ${config} | |
echo "alias rd=\"rmdir\"" >> ${config} | |
echo "alias rf=\"rm -rf\"" >> ${config} | |
echo "alias cl=\"clear\"" >> ${config} | |
exec /bin/zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HEY THERE - PLEASE READ THIS
Here's what this does
This simply creates some shortcuts for you so you can be faster in the terminal and get your job done. You must have ZSH installed for it to work.
Here's how to use it
curl -s PASTETHELINKHERE > shortcuts.sh
in your terminal (of course put your link instead of PASTETHELINKHERE)sh shortcuts.sh
in your terminalPeace out ✌️