Posts tagged "sh"
The which, type, and readlink Linux commands
The which command identifies the location of commands. It searches the system PATH for executables. The -a option prints all matching locations. To inspect the PATH, use tr to split it into separate lines for improved readability. »
ubuntushbash or sh
I prefer sh over bash. I begin almost every script with the same four lines. A POSIX-compliant shell, exit immediately on error, unset CDPATH, and unset IFS. »
shVim - Add a file to the staging area
This is a mapping that adds the current file to the git staging area. This won't work if the file is not located within your current working directory. How can you determine the current working directory? »
vimgitshgit open - A shell script
git-open is a fantastic tool. It allows you to open a repo website in your browser. It supports Linux, Mac, and Windows, and supports GitHub, GitLab, and Bitbucket. »
gitshFix laggy key presses
If key presses are slow or laggy, check the system configuration. On Ubuntu you can configure keyboard repeat interval and delay. »
ubuntushRemapping CapsLock to Escape
Do you use your CapsLock? Perhaps you like shouting at people. If you're a vim user, I suggest remapping it to Escape or at least something more useful. »
ubuntushBash Prompt Snobbery
gitshUbuntu Keymaps
ubuntush