This file contains hidden or 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
| #!/usr/bin/env bash | |
| # All my gist code is licensed under the terms of the MIT license. | |
| # Video demo: https://www.youtube.com/watch?v=ISKzBlzXRWE | |
| # Add this to your .bashrc: | |
| # get the texinfo node for a command | |
| # - takes a command name, like 'cat' |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # All my gist code is licensed under the terms of the MIT license. | |
| # Video demo: https://www.youtube.com/watch?v=nf3ddQniw-o | |
| # diffc - diff commands | |
| # - allows to call as: diffc 'command one' 'command two' | |
| # instead of: diff <(command one) <(command two) | |
| # (Just to save typing a few characters. Lol I'm a lazy programmer) |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # All my gist code is licensed under the terms of the MIT license. | |
| ### Make sure this file is visible from your $PATH and called 'useradd' | |
| # Video demo: https://www.youtube.com/watch?v=Nzl2YzYDFlI | |
| ### Sample output: | |
| # |
This file contains hidden or 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
| # All my gist code is licensed under the terms of the MIT license. | |
| # Video demo: https://www.youtube.com/watch?v=Dl2n_fcDjkE | |
| ### Add this to your .bashrc | |
| # custom fdisk | |
| # - add color when called with -l or -x | |
| # - prepend sudo | |
| function fdisk () { |
This file contains hidden or 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
| # All my gist code is licensed under the terms of the MIT license. | |
| # Video demo: https://www.youtube.com/watch?v=Dl2n_fcDjkE | |
| ### Add this to your .bashrc | |
| # custom free | |
| # - add common options | |
| # - add color | |
| # - add footer |
This file contains hidden or 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
| # All my gist code is licensed under the terms of the MIT license. | |
| # Video demo: https://www.youtube.com/watch?v=lSOVozD7Iio | |
| ### Add this to your .bashrc | |
| export LESS="--RAW-CONTROL-CHARS --quit-if-one-screen --clear-screen --tilde" | |
| # version of less that scrolls | |
| alias less="less --chop-long-lines --status-column --rscroll='>'" |
This file contains hidden or 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
| # All my gist code is licensed under the terms of the MIT license. | |
| # Video demo: https://www.youtube.com/watch?v=cDlWF48xaGQ | |
| # Add this to your .bashrc | |
| # custom gpg | |
| # - add color output | |
| # - replace $HOME with ~ | |
| # - Add footer with explanation of terms |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # All my gist code is licensed under the terms of the MIT license. | |
| # Video demo: https://www.youtube.com/watch?v=cOYVjk26504 | |
| red="\e[31m" | |
| green="\e[32m" | |
| reset="\e[0m" |
This file contains hidden or 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
| # All my gist code is licensed under the terms of the MIT license. | |
| # Video demo: https://www.youtube.com/watch?v=z6Wee8o4x1s | |
| # Put this in your .bashrc | |
| # Record terminal to this file. | |
| __terminal_recording_file="${HOME}/.cache/terminal_recording" | |
| # Record terminal output. |
This file contains hidden or 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
| # All my gist code is licensed under the terms of the MIT license. | |
| # Video demo: https://www.youtube.com/shorts/mYfEIZFlIwo | |
| # Put this in your .bashrc or something like that | |
| # pretty_print_directory | |
| # - replace $HOME with ~ | |
| # - make everything before the last '/' green, and everything after white and | |
| # bold |