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
#!/bin/sh | |
vcc () { | |
vim "${1}.c" && | |
mkdir -p "$(dirname "${1}".c)"/bin && | |
cc -Wall -Wextra -o "$(dirname "${1}".c)"/bin/"$(basename "$1")" "${1}".c && | |
./"$(dirname "${1}".c)"/bin/"$(basename "$1")" | |
} | |
# Uncomment this if you intend to make it a script. Comment it/leave it commented if you source it in your .*shrc | |
#vcc "${1}" |
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
#!/bin/bash | |
printf "%s" "$(</tmp/wttr)" |