Files:
.ruby-version
.ruby-gemset
Example:
The following is for an app using "ruby-2.0.0" and a gemset named "example":
[~]$ cd example
<!-- add the following to the "Key bindings" section of jwmrc --> | |
<Key mask="A" key="s">shade</Key> | |
<Key mask="AS" key="fs">fullscreen</Key> |
/*See man -s 2 chmod for more information */ | |
#include <stdio.h> | |
#include <sys/stat.h> | |
int main(void){ | |
/*mode_t mode = S_IXOTH */ | |
mode_t mode = 00755; /*Replace this with the actual mode you want. Ideally you'd want to ask the user */ | |
chmod("hi.txt", mode); /*This assumes hi.txt is present. You'd want to prompt the user for a filename in a real scenario */ |
#Prints the content of every file in your current directory | |
#Useful if you just wrote a few small files and want to see everything at a glance | |
#For each file: | |
#1. Display it's name preceded & succeeded by dashed lines | |
#2. Display the files contents | |
for i in * ; do echo "----"; printf "$i\n----\n" ; cat $i; done |