I use Ubuntu -- I have a ~/scripts directory, where I put useful scripts. I then alias these for quick use.
Here's a shortcut to open any VSCode workspace saved in ~/workspace/vscode-workspaces/
#!/bin/bash## Author: William Huster# Description: Shortcut to open a VSCode workspace#
code $HOME/workspace/vscode-workspaces/$1.code-workspace
In ~/.bashrc:
alias workspace="bash $SCRIPTS_DIR/vscode-workspace.sh"
I also have a git-versioned folder for notes in markdown. I like to create a file for daily notes, so I have note alias and script to create/open that file:
#!/bin/bash## Author: William Huster# Description: Shortcut to launch an editor with my today's notes.#WORKSPACE_DIR=~/workspace
NOTES_DIR=~/notes
cd$NOTES_DIR# Make the filenameNOW=$(date +"%Y-%m-%d")NOTE_TITLE="__Notes.md"todays_notes="$NOW$NOTE_TITLE"# Open it!
code $WORKSPACE_DIR/vscode-workspaces/notes.code-workspace "$todays_notes"
I'm a developer-turned-business owner who loves to explore the right tools for the job. I enjoy writing and documenting my journey. I use code as one of the tools to solve real problems.
I use Ubuntu -- I have a
~/scripts
directory, where I put useful scripts. I then alias these for quick use.Here's a shortcut to open any VSCode workspace saved in
~/workspace/vscode-workspaces/
In
~/.bashrc
:I also have a git-versioned folder for notes in markdown. I like to create a file for daily notes, so I have
note
alias and script to create/open that file:In
~/.bashrc
:That's definitely something I should do! Such great ideas, thank you for these!