Skip to content

Instantly share code, notes, and snippets.

@hidakatsuya
Last active March 17, 2024 13:14
Show Gist options
  • Save hidakatsuya/76bd552bcff867db66f89b9862aafc65 to your computer and use it in GitHub Desktop.
Save hidakatsuya/76bd552bcff867db66f89b9862aafc65 to your computer and use it in GitHub Desktop.
An alias for nvim command to launch nvim with a directory
# 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