Last active
March 17, 2024 13:14
-
-
Save hidakatsuya/76bd552bcff867db66f89b9862aafc65 to your computer and use it in GitHub Desktop.
An alias for nvim command to launch nvim with a directory
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
# Prerequistes | |
# * OS is Ubuntu 22.04 | |
# * Nvim is installed with AppImage | |
# Usage | |
# nvim /path/to/your/project/directory | |
function nvim() { | |
path=$1 | |
if [ -d "$path" ]; then | |
cd $path | |
nvim.appimage | |
else | |
nvim.appimage $@ | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment