Pimp that Terminal - Add shortcuts and functions to your .bash_profile to simplify routine tasks
Skills:
AI Workflow Automation70%
Key Takeaways
Customizes the terminal by adding shortcuts and functions to the .bash_profile file to simplify routine tasks
Full Transcript
what if you could automate routine things that you do in the terminal every day like switch to a very long and complex folder path that you normally have to go CD space CD space um or maybe open a file or a folder directly in Sublime Text today we learn in this very quick video how to do that it will only apply to Mac and Linux and Unix users uh it will not apply to WN to Windows users I'm sorry there are ways to do it but that's just it's completely different from this video so what you're going to do is you're going to go to Sublime text or your favorite text editor and you're going to open a new document and we're going to save what's called The Bash profile folder I can't type and talk at the same time if you guys wonder why I do that okay so the file in your user directory called bash profile is the file we're going to update and what that is is that runs every time you open a new terminal session so let's go ahead and make an alias and Alias just is a shortcut basically for a command Alias let's go n now I'll just make it super simple I'll just call it engine X for an engine X project that I'm working on if I go engine X then the command then I basically do quotes and anything in the quotes is the actual command it runs when I type engine X so I'm going to go code sandbox engine X engine so that's a long folder name that I hate typing I'm always having to type it and I'm going to echo which will tell me this will basically just Echo whatever I put in here and this is just my reference to remember that I have this command okay let me go ahead and hit save I'm going to go to my user folder bash profile there we go it warns me that dot is only for system files and then I'm going to replace it and I say yep okay so now if I create a new terminal session you'll notice that it echoes this that's why I type the echo here so whenever I open a new window of any kind I'm always going to Echo that and so now I can just type engine X there we go and automatically took me all the way up to my engine X folder which is my usercode sandbox /in x/g X awesome let's here's another very useful one and that's I call it sub which is for Sublime Text um I'm going to go open this is actually a function A bash function looks like JavaScript in a lot of ways number one or dollar one is my first argument that I pass it I'll show you in a second how to use that and then- a is my application names and I'm going to go Sublime text so there we go and then I'm going to Echo my you know REM reminder open file in Sublime there we go let's save that and let's go ahead and now I have to open a new session always have to open a new terminal for these things to activate just so you know if I type sub here nothing happens says command not found I open a new terminal window and I'm going to be fine so now I can go let me see what I got here I can go sub music and voila it opened the music folder as if it were a project in Sublime Text super cool let me go to my engine X folder now and let me see what I got let me go sub vagrant file nice so now I can easily open a file I can easily open a project if you want to open the folder you're in you just do Dot and there you go now I got my whole engine x file and that's a super fun little trick that lots of people don't know about that you allows you to automate a lot of things in terminal create your own shortcuts and generally enjoy life more have a great day
Original Description
Editing your .bash_profile file is the fastest way to streamline your workflow. Just a couple of lines give you shortcuts and functions that help your terminal life burst with joy in the most nerdy ways.
-~-~~-~~~-~~-~-
Also watch: "Responsive Design Tutorial - Tips for making web sites look great on any device"
https://www.youtube.com/watch?v=fgOO9YUFlGI
-~-~~-~~~-~~-~-
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from LearnCode.academy · LearnCode.academy · 18 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
▶
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Web Development Tutorial for Beginners (#1) - How to build webpages with HTML, CSS, Javascript
LearnCode.academy
Web Development Tutorial for Beginners (#2) - Basic CSS - How to build a website with HTML & CSS
LearnCode.academy
How to create CSS Layouts - Web Development Tutorial for Beginners (#3) - with HTML & CSS
LearnCode.academy
Bootstrap Tutorial For Beginners - Responsive Design with Bootstrap 3 - Responsive HTML, CSS
LearnCode.academy
Angularjs Tutorial for Beginners - learn Angular.js using UI-Router
LearnCode.academy
CSS Tutorial - Web Development Tutorial for Beginners (#5)
LearnCode.academy
Node.js tutorial for beginners - an introduction to Node.js with Express.js
LearnCode.academy
Github Tutorial For Beginners - Github Basics for Mac or Windows & Source Control Basics
LearnCode.academy
Javascript Tutorial - Programming Tutorial for Beginners Pt 1
LearnCode.academy
Javascript Tutorial - jQuery Tutorial for Beginners Pt 2
LearnCode.academy
AngularJS Directives Tutorial - Part 1 - Demystifying Angular Directives
LearnCode.academy
WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice
LearnCode.academy
YEOMAN TUTORIAL - Master Front-End Workflow with Yeoman, Grunt and Bower
LearnCode.academy
BOWER! - Streamline Web Workflow with Bower Package Manager
LearnCode.academy
Chrome DevTools for CSS - Better CSS Coding & CSS Debugging with Developer Tools
LearnCode.academy
GITHUB ATOM - Why Atom.io will be your favorite Text Editor!
LearnCode.academy
GITHUB PULL REQUEST, Branching, Merging & Team Workflow
LearnCode.academy
Pimp that Terminal - Add shortcuts and functions to your .bash_profile to simplify routine tasks
LearnCode.academy
jQuery Tutorial #3 - Writing Smarter, Better Code - jQuery Tutorial for Beginners
LearnCode.academy
jQuery Tutorial #2 - Event Binding - jQuery Tutorial for Beginners
LearnCode.academy
jQuery Tutorial #1 - jQuery Tutorial for Beginners
LearnCode.academy
Node.js MongoDB Tutorial using Mongoose
LearnCode.academy
Node.js tutorial for beginners 2014 - an introduction to Node.js with Express.js
LearnCode.academy
WEB DEVELOPMENT - SECRETS TO STARTING A CAREER in the Web Development Industry
LearnCode.academy
jQuery Tutorial #4 - DOM Traversal with jQuery
LearnCode.academy
jQuery Tutorial #5 - Building a jQuery Tab Panel Widget
LearnCode.academy
jQuery Tutorial #6 - Building a jQuery Image Slider
LearnCode.academy
jQuery Ajax Tutorial #1 - Using AJAX & API's (jQuery Tutorial #7)
LearnCode.academy
jQuery Ajax Tutorial #2 - Posting data to backend (jQuery tutorial #8)
LearnCode.academy
jQuery Ajax Tutorial #3 - Delegating Events & Mustache.js Templating (jQuery tutorial #9)
LearnCode.academy
jQuery Ajax Tutorial #4 - "Edit" modes & Better Mustache.js Templating (jQuery tutorial #9)
LearnCode.academy
How to put your website online - how to FTP to a domain & upload files to a webhost
LearnCode.academy
Basic Terminal Usage - Cheat Sheet to make the command line EASY
LearnCode.academy
SSH Tutorial - Basic server administration with SSH
LearnCode.academy
Vagrant Tutorial - Running a VM For Your Local Development Environment
LearnCode.academy
Sublime Text Favorite Packages and Workflow
LearnCode.academy
What Makes Javascript Weird...and AWESOME - Pt 1
LearnCode.academy
Javascript is Event-Driven - What makes Javascript Weird...and Awesome Pt 2
LearnCode.academy
Javascript Closures Tutorial - What makes Javascript Weird...and Awesome Pt 3
LearnCode.academy
FREE REST API - Practice Developing Javascript AJAX Apps with this API
LearnCode.academy
Javascript Scope Tutorial - What Makes Javascript Weird...and Awesome Pt 4
LearnCode.academy
Javascript Context Tutorial - What makes Javascript Weird...and Awesome Pt5
LearnCode.academy
Nginx Tutorial - Proxy to Express Application, Load Balancer, Static Cache Files
LearnCode.academy
Live Reload Sublime, Chrome, Anything - Fast and easy with Live-Server
LearnCode.academy
Are you bad, good, better or best with Async JS? JS Tutorial: Callbacks, Promises, Generators
LearnCode.academy
Javascript Generators - THEY CHANGE EVERYTHING - ES6 Generators Harmony Generators
LearnCode.academy
Web Development Advice - Interview with Dev Tips
LearnCode.academy
How the Internet Works for Developers - Pt 2 - Servers & Scaling
LearnCode.academy
How the Internet Works for Developers - Pt 1 - Overview & Frontend
LearnCode.academy
HAPROXY vs NGINX - 10,000 requests while killing servers
LearnCode.academy
Node.js Cluster - Boost Node App Performance & Stability with Clustering
LearnCode.academy
Web Dev Training with Treehouse
LearnCode.academy
What is Node.js Exactly? - a beginners introduction to Nodejs
LearnCode.academy
How to deploy node.js applications #1 - spin up a server
LearnCode.academy
Deploying node.js applications #2 - provision server & setup flightplan
LearnCode.academy
Deploying Node.js Applications - Deploy Node the right way - as an Upstart Service
LearnCode.academy
Mobile Web Design - Coding Workflow For Mobile Websites
LearnCode.academy
WHY YOU NEED A BUILD SYSTEM LIKE GRUNT, GULP, BRUNCH FOR YOUR WEBSITE
LearnCode.academy
GRUNT TUTORIAL - Grunt makes your web development better!
LearnCode.academy
STOP USING FTP! - How to Deploy with Flightplan over SSH
LearnCode.academy
More on: AI Workflow Automation
View skill →Related Reads
📰
📰
📰
📰
AI didn’t replace the work for me. It moved the stress to a different place.
Reddit r/artificial
Titel:5 Free Ai tools I use on my phone on dacope, banisanta village
Medium · Programming
I Spent a Week Using Apple’s New Visual Intelligence. I Can’t Stop Pointing My Camera at Things.
Medium · AI
AI Voice Casting for Short Drama Series: The Consistency Game-Changer
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI