Using Alfred to Switch Maven Settings with One Click
Since company projects require using internal Maven resources, which aren’t needed at home, switching settings back and forth is time-consuming. Inspired by automation, I considered creating a script to switch sources.
Script-Based Initial Solution
I came across an article by a fellow developer about script-based switching, which gave me an idea. Here’s the script:
1 | #!/bin/bash |
The script allows interactive execution to switch settings. However, this method still requires running the script each time. Is there a way to achieve one-click switching? Yes! Alfred can do it.
My Mac App List
I have spent some time to check my personal Mac Apps, so provide a list for the references.
Will keep updating
Notes
- Some are paid apps, but there are also many free and open-source options. Ultimately, the value of an app is in its output. These apps have significantly helped my work/life, and they are worth the purchase.
- In order to save money, for some paid apps, I use open-source licenses.
- If you can afford it, suggest to buy and support the official versions.
- The list is periodically updated, so some apps may be replaced.
- When constantly choosing and refining apps, I have one feeling: apps to us are like swords to a swordsmen. It’s not about the quantity but about being handy and sharp. So, choose the ones that suit you best, learn them deeply, and ultimately improve your efficiency, making work and life better.
About Alfred: What you need to know
I’ve been using Alfred for several years and believe it is a powerful tool. I summarize my most used features for your reference and perhaps to help the follower.
Alfred is my primary entry for searching and querying on my Mac. Every operation I perform start from this single input box.
Instructions
The following tutorial applies to Alfred 4/5
let’s start!
Mac Hotkeys:Boost Your Productivity
Recently, while working on a project, I saw experts using shortcuts with incredible efficiency. Their proficiency was awe-inspiring, highlighting the gap between us. While you’re still slowly moving your mouse, the expert might have already switched between numerous files and executed several actions efficiently. This gap in efficiency multiplies over time. Seeing this gap has motivated me to start mastering various common shortcuts. Here, I record them for my reference and perhaps to help others.
Disclaimer
- Since I am a Mac user and a Developer, the software and skills covered here are focused accordingly.
- Some shortcuts are marked with * indicating that they are custom settings, not software defaults, and are for reference only.
- The operational techniques must also be continually adjusted and enriched in practice, so
this document will be continuously updated
. - I set the F media keys as function keys, so low-frequency media key operations require Fn, but other high-frequency operations become simpler.