rcfiles 1.2.46
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rcfiles might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +559 -0
- data/bin/rcfiles +12 -0
- data/bin/rcfiles_run_it +7 -0
- data/doc/README.gen +516 -0
- data/img/LOGO_FOR_THE_RCFILES_PROJECT.png +0 -0
- data/lib/rcfiles/aggregate_all_rcfiles/aggregate_all_rcfiles.rb +137 -0
- data/lib/rcfiles/class/colours.rb +54 -0
- data/lib/rcfiles/class/initialize.rb +66 -0
- data/lib/rcfiles/class/misc.rb +300 -0
- data/lib/rcfiles/class/rcfiles.rb +31 -0
- data/lib/rcfiles/class/reset.rb +26 -0
- data/lib/rcfiles/class/run.rb +17 -0
- data/lib/rcfiles/colours/colours.rb +111 -0
- data/lib/rcfiles/commandline/commandline.rb +177 -0
- data/lib/rcfiles/constants/constants.rb +253 -0
- data/lib/rcfiles/directory_aliases/README.md +2 -0
- data/lib/rcfiles/directory_aliases/directory_aliases.rb +647 -0
- data/lib/rcfiles/directory_aliases/toplevel_stored_dataset.rb +177 -0
- data/lib/rcfiles/directory_aliases/yaml_file_used_by_class_directory_aliases.rb +67 -0
- data/lib/rcfiles/files/file_aliases.rb +78 -0
- data/lib/rcfiles/files/file_cd_aliases.rb +85 -0
- data/lib/rcfiles/files/file_ls_colours.rb +76 -0
- data/lib/rcfiles/files/file_path_variable.rb +74 -0
- data/lib/rcfiles/files/file_pkgconfig.rb +74 -0
- data/lib/rcfiles/files/file_programs_aliases.rb +68 -0
- data/lib/rcfiles/files/file_ps1.rb +80 -0
- data/lib/rcfiles/files/file_system_settings.rb +66 -0
- data/lib/rcfiles/help/help.rb +46 -0
- data/lib/rcfiles/no_colours.rb +13 -0
- data/lib/rcfiles/project/project.rb +45 -0
- data/lib/rcfiles/rcfiles/README.md +5 -0
- data/lib/rcfiles/rcfiles/aliases_rc +20431 -0
- data/lib/rcfiles/rcfiles/cd_aliases_rc +14980 -0
- data/lib/rcfiles/rcfiles/cflags_rc +9 -0
- data/lib/rcfiles/rcfiles/compile_rc +11 -0
- data/lib/rcfiles/rcfiles/file_information_rc +16 -0
- data/lib/rcfiles/rcfiles/gnome_rc +10 -0
- data/lib/rcfiles/rcfiles/kde_rc +17 -0
- data/lib/rcfiles/rcfiles/kernel_rc +12 -0
- data/lib/rcfiles/rcfiles/lang_rc +9 -0
- data/lib/rcfiles/rcfiles/ldflags_rc +8 -0
- data/lib/rcfiles/rcfiles/ls_colours_rc +9 -0
- data/lib/rcfiles/rcfiles/network_rc +37 -0
- data/lib/rcfiles/rcfiles/path_variable_rc +9 -0
- data/lib/rcfiles/rcfiles/pkgconfig_rc +9 -0
- data/lib/rcfiles/rcfiles/programs_aliases_rc +17571 -0
- data/lib/rcfiles/rcfiles/ps1_rc +9 -0
- data/lib/rcfiles/rcfiles/special_aliases_rc +8 -0
- data/lib/rcfiles/rcfiles/system_rc +13 -0
- data/lib/rcfiles/rcfiles/system_settings_rc +192 -0
- data/lib/rcfiles/rcfiles/term_rc +9 -0
- data/lib/rcfiles/rcfiles/video_rc +24 -0
- data/lib/rcfiles/requires/require_the_directory_aliases.rb +7 -0
- data/lib/rcfiles/requires/require_the_rcfiles_constants.rb +18 -0
- data/lib/rcfiles/requires/require_the_rcfiles_project.rb +67 -0
- data/lib/rcfiles/requires/try_to_require_syck_and_psych.rb +18 -0
- data/lib/rcfiles/toplevel_methods/autogenerate_rc_file_from_this_yaml_file.rb +102 -0
- data/lib/rcfiles/toplevel_methods/change_directory.rb +16 -0
- data/lib/rcfiles/toplevel_methods/convert.rb +118 -0
- data/lib/rcfiles/toplevel_methods/convert_global_variables_in_the_cd_aliases_file_to_a_standalone_yaml_file.rb +50 -0
- data/lib/rcfiles/toplevel_methods/create_windows_cd_aliases_bat_file.rb +51 -0
- data/lib/rcfiles/toplevel_methods/e.rb +16 -0
- data/lib/rcfiles/toplevel_methods/esystem.rb +19 -0
- data/lib/rcfiles/toplevel_methods/generate_yaml_files.rb +148 -0
- data/lib/rcfiles/toplevel_methods/infer.rb +83 -0
- data/lib/rcfiles/toplevel_methods/is_on_roebe.rb +16 -0
- data/lib/rcfiles/toplevel_methods/main_directory.rb +108 -0
- data/lib/rcfiles/toplevel_methods/misc.rb +341 -0
- data/lib/rcfiles/toplevel_methods/n_registered_aliases_in_total.rb +55 -0
- data/lib/rcfiles/toplevel_methods/no_file_exists_at.rb +19 -0
- data/lib/rcfiles/toplevel_methods/notifications.rb +35 -0
- data/lib/rcfiles/toplevel_methods/rds.rb +16 -0
- data/lib/rcfiles/toplevel_methods/remove_newlines.rb +29 -0
- data/lib/rcfiles/toplevel_methods/report.rb +53 -0
- data/lib/rcfiles/toplevel_methods/return_standard_header.rb +36 -0
- data/lib/rcfiles/toplevel_methods/run_it.rb +46 -0
- data/lib/rcfiles/toplevel_methods/save_file.rb +27 -0
- data/lib/rcfiles/toplevel_methods/use_psych_or_syck.rb +50 -0
- data/lib/rcfiles/toplevel_methods/use_quotes.rb +68 -0
- data/lib/rcfiles/toplevel_methods/verbosity.rb +28 -0
- data/lib/rcfiles/version/version.rb +26 -0
- data/lib/rcfiles/yaml/aliases.yml +23069 -0
- data/lib/rcfiles/yaml/cd_aliases.yml +15699 -0
- data/lib/rcfiles/yaml/global_variables/README.md +3 -0
- data/lib/rcfiles/yaml/global_variables/global_variables_extracted_from_the_file_cd_aliases.yml +121 -0
- data/lib/rcfiles/yaml/ls_colours.yml +128 -0
- data/lib/rcfiles/yaml/path_variable.yml +13 -0
- data/lib/rcfiles/yaml/pkgconfig.yml +46 -0
- data/lib/rcfiles/yaml/programs_aliases.yml +19203 -0
- data/lib/rcfiles/yaml/programs_aliases.yml~ +19086 -0
- data/lib/rcfiles/yaml/ps1.yml +82 -0
- data/lib/rcfiles/yaml/store_into_this_directory.yml +1 -0
- data/lib/rcfiles/yaml/system_settings.yml +526 -0
- data/lib/rcfiles/yaml/use_psych_or_syck.yml +1 -0
- data/lib/rcfiles.rb +1 -0
- data/rcfiles.gemspec +57 -0
- data/test/testing_directory_aliases.rb +47 -0
- data/test/testing_using_another_path_to_directory_aliases.rb +17 -0
- data/test/testing_yaml_to_rcfiles.rb +9 -0
- metadata +205 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
---
|
2
|
+
# =========================================================================== #
|
3
|
+
# I recommend to use pwd + "/" for display purposes - this makes it
|
4
|
+
# easier to copy/paste.
|
5
|
+
#
|
6
|
+
# Command substitutions in double quotes " get expanded immediately. This is
|
7
|
+
# not useful if we wish to display the current prompt, so we have to use
|
8
|
+
# single quotes "'" there.
|
9
|
+
#
|
10
|
+
# So in order to just show the current working directory (cwd/pwd), we can
|
11
|
+
# use this prompt:
|
12
|
+
#
|
13
|
+
# export PS1='$(pwd)'
|
14
|
+
#
|
15
|
+
# =========================================================================== #
|
16
|
+
# To set a red color prompt, type the following command:
|
17
|
+
#
|
18
|
+
# export PS1="\e[0;31m[\u@\h \W]\$ \e[m "
|
19
|
+
#
|
20
|
+
# =========================================================================== #
|
21
|
+
# Quick changes:
|
22
|
+
#
|
23
|
+
# export PS1="$BOLD_CYAN_ON_BLACK"'${PWD%%/}'"$BOLD_BLACK/$BOLD_WHITE"
|
24
|
+
# export PS1="$CYAN"'${PWD%%/}'"/"
|
25
|
+
# PS1='\[\e[1;34m\][\A] \[\e[0;0m\][\[\e[1;32m\]\w\[\e[0;0m\]] \$ '
|
26
|
+
# PS1="\[\e[34m\][\$(date +%H%M)][\u@\h:\w]$ "
|
27
|
+
# PS1="\[\e[32m\][\$(date +%H%M)][\u@\h:\w]$ \e[0m"
|
28
|
+
#
|
29
|
+
# =========================================================================== #
|
30
|
+
# You can have the prompt execute fairly arbitrary things like so:
|
31
|
+
# PS1='`pwd`'. This will make it run pwd every time it displays
|
32
|
+
# the prompt. Substitute a program or script that formats the
|
33
|
+
# output to your liking.
|
34
|
+
# =========================================================================== #
|
35
|
+
# The prompt colour should be synced.
|
36
|
+
# =========================================================================== #
|
37
|
+
# To see all valid 256 xterm colours, have a look at:
|
38
|
+
#
|
39
|
+
# https://jonasjacek.github.io/colors/
|
40
|
+
#
|
41
|
+
# =========================================================================== #
|
42
|
+
|
43
|
+
# =========================================================================== #
|
44
|
+
# PS1: "$CHOCOLATE'$(pwd)'$CLOSING_TAG$WHITE"
|
45
|
+
# PS1: "$CHOCOLATE'${PWD%%/}'/$CLOSING_TAG$WHITE"
|
46
|
+
# =========================================================================== #
|
47
|
+
|
48
|
+
# PS1: "$CHOCOLATE'$(pwd)/'$CLOSING_TAG\e[49m\e[0m"
|
49
|
+
|
50
|
+
# PS1: "$CHOCOLATE'$(pwd)/'$CLOSING_TAG$WHITE"
|
51
|
+
|
52
|
+
|
53
|
+
# =========================================================================== #
|
54
|
+
# === This was the original:
|
55
|
+
#
|
56
|
+
# PS1='${PWD%%*/}/'
|
57
|
+
#
|
58
|
+
# Here is a variant:
|
59
|
+
#
|
60
|
+
# PS1="\[\033[01;32m\]\[\033[0m\]${PWD%%*/}/"
|
61
|
+
#
|
62
|
+
# PS1="\\033[48;5;0;38;5;3m"'${PWD%%*/}/'"\\033[0m"
|
63
|
+
#
|
64
|
+
#
|
65
|
+
#
|
66
|
+
#"\\033[48;5;95;38;5;214mhello world\\033[0m"
|
67
|
+
#
|
68
|
+
#
|
69
|
+
# PS1='\033]00;90\]${PWD%%*/}/'
|
70
|
+
#
|
71
|
+
# PS1: "'${PWD%%*/}/'"
|
72
|
+
# PS1: "$CHOCOLATE'${PWD%%*/}/'$CLOSING_TAG$WHITE"
|
73
|
+
# PS1='${PWD%%*/}/'
|
74
|
+
# PS1: "$CHOCOLATE${PWD%%*/}/$CLOSING_TAG"
|
75
|
+
# =========================================================================== #
|
76
|
+
|
77
|
+
# =========================================================================== #
|
78
|
+
# The following is the current main PS1 - it makes use of xterm-256 colours:
|
79
|
+
# =========================================================================== #
|
80
|
+
# PS1="\\033[48;5;0;38;5;3m"'${PWD%%*/}/'"\\033[0m"
|
81
|
+
# =========================================================================== #
|
82
|
+
PS1: "\\\\033[48;5;0;38;5;3m\"'${PWD%%*/}/'\"\\\\033[0m"
|
@@ -0,0 +1 @@
|
|
1
|
+
/AUTOGENERATED/
|
@@ -0,0 +1,526 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# === System Settings
|
3
|
+
#
|
4
|
+
# System Settings contains settings which are to be used together in an
|
5
|
+
# export VAR=CONTENT manner. They describe settings such as keyboard,
|
6
|
+
# basic system variables, monitor stuff (in addition to
|
7
|
+
# display_settings.yml).
|
8
|
+
#
|
9
|
+
# =========================================================================== #
|
10
|
+
# pp x = YAML.load_file(Rcfiles.file_system_settings)
|
11
|
+
# =========================================================================== #
|
12
|
+
|
13
|
+
# =========================================================================== #
|
14
|
+
# === USERS
|
15
|
+
# =========================================================================== #
|
16
|
+
USERS: /home # === USERS
|
17
|
+
|
18
|
+
# =========================================================================== #
|
19
|
+
# === USERS_X
|
20
|
+
# =========================================================================== #
|
21
|
+
USERS_X: /home/x # === USERS_X
|
22
|
+
|
23
|
+
# =========================================================================== #
|
24
|
+
# === RSRC
|
25
|
+
# =========================================================================== #
|
26
|
+
RSRC: #{$USERS_X}programming/ruby/src/
|
27
|
+
|
28
|
+
# =========================================================================== #
|
29
|
+
# === IS_STD_SYSTEM
|
30
|
+
# =========================================================================== #
|
31
|
+
IS_STD_SYSTEM: '1'
|
32
|
+
|
33
|
+
# =========================================================================== #
|
34
|
+
# === MANPATH
|
35
|
+
#
|
36
|
+
# I don't think I will need manpath.
|
37
|
+
# =========================================================================== #
|
38
|
+
# MANPATH: $MANPATH:/usr/lib/qt # If you want more of this manpath stuff.
|
39
|
+
|
40
|
+
# =========================================================================== #
|
41
|
+
# Office tag. Abiword Tag.
|
42
|
+
# =========================================================================== #
|
43
|
+
ABIWORD_FONTPATH: /System/Fonts # e $ABIWORD_FONTPATH
|
44
|
+
|
45
|
+
# =========================================================================== #
|
46
|
+
# General Eye Candy stuff. Location of THEMES.
|
47
|
+
# =========================================================================== #
|
48
|
+
THEMES: $USR/share/themes
|
49
|
+
|
50
|
+
# =========================================================================== #
|
51
|
+
# XORG TAG MON TAG.
|
52
|
+
# =========================================================================== #
|
53
|
+
FRAME_BUFFER0: /dev/fb0
|
54
|
+
|
55
|
+
# =========================================================================== #
|
56
|
+
# Audio Delay when playing songs
|
57
|
+
# how many seconds before we play next song
|
58
|
+
# =========================================================================== #
|
59
|
+
DEFAULT_DELAY_PLAYING_SONGS: 2.2
|
60
|
+
|
61
|
+
# =========================================================================== #
|
62
|
+
# === Language tag.
|
63
|
+
# =========================================================================== #
|
64
|
+
LANGUAGE: en_US # de_DE.utf8
|
65
|
+
|
66
|
+
# =========================================================================== #
|
67
|
+
# I dont know but I think setting LANG isnt a good idea. JUL 2005
|
68
|
+
# However I didnt write WHY so I have to re enable it..
|
69
|
+
# LC_CTYPE=de_DE.UTF-8 xterm -fn '-Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1'
|
70
|
+
# export LC_CTYPE="en_IE.iso88591"
|
71
|
+
# =========================================================================== #
|
72
|
+
# CDPATH is used to make faster change dirs. I however came to the
|
73
|
+
# conclusion that it is not really useful, thus I dont use it.
|
74
|
+
# =========================================================================== #
|
75
|
+
# CDPATH: .:~:
|
76
|
+
|
77
|
+
# =========================================================================== #
|
78
|
+
# === LIBPATH
|
79
|
+
#
|
80
|
+
# LIBPATH, also known as "Additional Libpaths", names the directories that
|
81
|
+
# hold the phases of the COHERENT C compiler, which are the run-time
|
82
|
+
# start-up modules, and libraries.
|
83
|
+
#
|
84
|
+
# cc searches these directories as it orchestrates the compiling and
|
85
|
+
# linking of a program written in C or assembly-language.
|
86
|
+
# If missing, cc will search through path.h
|
87
|
+
# =========================================================================== #
|
88
|
+
# LIBPATH: /usr/X11/lib
|
89
|
+
|
90
|
+
# =========================================================================== #
|
91
|
+
# Which system-editor to use:
|
92
|
+
# =========================================================================== #
|
93
|
+
SYSTEM_EDITOR: nano
|
94
|
+
|
95
|
+
# =========================================================================== #
|
96
|
+
# You can type env or $_ to see a listing of all current environment
|
97
|
+
# variables.
|
98
|
+
# =========================================================================== #
|
99
|
+
# Um eine Liste aller export Variablen angezeigt zu bekommen,
|
100
|
+
# hilft dieses Command: export -p
|
101
|
+
# =========================================================================== #
|
102
|
+
# Mit dem Befehl "reset" setzt man alle Terminal Eigenschaften
|
103
|
+
# anhand der TERM Variablen wieder zurueck auf die Defaults.
|
104
|
+
# =========================================================================== #
|
105
|
+
|
106
|
+
# =========================================================================== #
|
107
|
+
# Here we gather other system specific settings
|
108
|
+
# system_exports:
|
109
|
+
# Maybe should be moved down..
|
110
|
+
# since its part of
|
111
|
+
# detailed_directory_layout
|
112
|
+
# actually .
|
113
|
+
# =========================================================================== #
|
114
|
+
|
115
|
+
# =========================================================================== #
|
116
|
+
# === SYSTEM DIRECTORY LAYOUT
|
117
|
+
#
|
118
|
+
# MAY ONLY CONTAIN PATHS OF A _BASIC_ SYSTEM.
|
119
|
+
# MAY ALSO CONTAIN REDUNDANCIES, WITH THE NUMBER ONE EXPORT SETTING
|
120
|
+
# BEING THE TARGET OF ALL OTHER SETTINGS.
|
121
|
+
#
|
122
|
+
# Example for this follows:
|
123
|
+
#
|
124
|
+
# UINC is the main "/usr/include" setting.
|
125
|
+
# UBIN is the main "/usr/bin" setting.
|
126
|
+
# UUBIN would only be allowed to point to
|
127
|
+
# $UBIN, but not to "/usr/bin" directly.
|
128
|
+
#
|
129
|
+
# Please note, personal settings such as
|
130
|
+
#
|
131
|
+
# LINUX="/home/x/DATA/PC/OS/LINUX"
|
132
|
+
#
|
133
|
+
# are NOT allowed here. Reason: We want to describe the basic system directories,
|
134
|
+
# and NOT personal directories. For personal stuff, use the other .yaml file.
|
135
|
+
# The created resource file will have entries
|
136
|
+
# such as:
|
137
|
+
# export MY_FILES="/System/Files"
|
138
|
+
# =========================================================================== #
|
139
|
+
# SYS TAGSYS SPECIFIC EXPORT SETTINGS
|
140
|
+
# SORT LOGICALLY, with /usr coming before
|
141
|
+
# /usr/lib appears.
|
142
|
+
# =========================================================================== #
|
143
|
+
# To test:
|
144
|
+
# x = YAML.load_file(ENV['LINUX_YAML']+'/std_system.yml')['detailed_directory_layout']
|
145
|
+
# x['PROGRAMS']
|
146
|
+
# =========================================================================== #
|
147
|
+
# There are some variables which probably should not be set, and I write
|
148
|
+
# them here:
|
149
|
+
# ===========================================================================#
|
150
|
+
# Only add DIRECTORY starting from here.
|
151
|
+
# =========================================================================== #
|
152
|
+
|
153
|
+
# =========================================================================== #
|
154
|
+
# System tag. Do not use the name $SYSTEM as variable. This conflicts with
|
155
|
+
# some things.
|
156
|
+
# =========================================================================== #
|
157
|
+
MY_SYSTEM: /System # lets try MY_SYSTEM. This should not have many conflicts.
|
158
|
+
SYS: $MY_SYSTEM
|
159
|
+
SYSTEM_DIR: $MY_SYSTEM
|
160
|
+
MYSYSTEM: $MY_SYSTEM
|
161
|
+
SYSTEM_LOGS: $MY_SYSTEM/Logs
|
162
|
+
SYSTEM_LOG: $SYSTEM_LOGS
|
163
|
+
|
164
|
+
MY_CDROM: $MOUNT/CDROM
|
165
|
+
CDROM: $MY_CDROM
|
166
|
+
RECIPES: $MY_SYSTEM/Recipes
|
167
|
+
MY_FILES: $MY_SYSTEM# $MY_SYSTEM/Files
|
168
|
+
DEPOT: /Depot
|
169
|
+
DEPOT_DIR: $DEPOT
|
170
|
+
# SL: $MY_SYSTEM/Links
|
171
|
+
SL: $MY_SYSTEM
|
172
|
+
SLE: $SL/Index/bin
|
173
|
+
SLB: $SLE
|
174
|
+
SLL: $SL/Index/lib
|
175
|
+
RBIN: /bin
|
176
|
+
MY_BIN: $UBIN
|
177
|
+
DEV: /dev
|
178
|
+
BASE_LIB: /lib
|
179
|
+
USR: /usr
|
180
|
+
MY_ULIB: $USR/lib
|
181
|
+
UBIN: $USR/bin
|
182
|
+
USR_INCLUDE: $USR/include
|
183
|
+
U_INC: $USR_INCLUDE
|
184
|
+
USRINC: $USR_INCLUDE
|
185
|
+
UINCLUDE: $USR_INCLUDE # Please note: Keeping a name of INCLUDE is not good.
|
186
|
+
TMP_PREFIX: $USR/test # A temporary prefix, which you can use
|
187
|
+
# to install into this --prefix=
|
188
|
+
MYTMPDIR: $DEPOT/jj # My tmp dir, wo compile zeugs gespeichert wird
|
189
|
+
DEST_DIR: $MYTMPDIR # siehe oben
|
190
|
+
MY_TMP_DIR: $MYTMPDIR # siehe oben
|
191
|
+
VAR: $MY_SYSTEM
|
192
|
+
MY_CODECS: $MY_SYSTEM/Codecs/ # Win Codecs etc. HiveOS specific, but certain configure scripts seem to check for $CODECS variable.
|
193
|
+
CODECSDIR: $MY_CODECS
|
194
|
+
USRSRC: $USR/src
|
195
|
+
FIREWIRE: $MY_MNT/Firewire
|
196
|
+
MOUNT1: $USB1
|
197
|
+
MOUNT2: $USB2
|
198
|
+
MOUNT3: $USB3
|
199
|
+
MOUNT4: $USB4
|
200
|
+
MOUNT5: $USB5
|
201
|
+
MOUNT6: $USB6
|
202
|
+
SYSLOGS: $VAR/Logs # /System/Logs. No trailing /
|
203
|
+
SYSLOGLOG: $SYSLOGS
|
204
|
+
SYSLOG: $SYSLOGS
|
205
|
+
LOG: $SYSLOGS
|
206
|
+
|
207
|
+
# =========================================================================== #
|
208
|
+
# === $SYSLINKS/Libraries
|
209
|
+
# =========================================================================== #
|
210
|
+
# I think $SYSLIB is not allowed.
|
211
|
+
# MY_SYSLIBS: $SYSLINKS/Libraries
|
212
|
+
MY_SYSLIB_DIR: /usr/lib/ # $MY_SYSTEM/Index/lib # Libraries
|
213
|
+
MY_SYSLIBS: $MY_SYSLIB_DIR
|
214
|
+
MY_SYSLIB: $MY_SYSLIB_DIR
|
215
|
+
SYSLIB_DIR: $MY_SYSLIB_DIR
|
216
|
+
MYSYSLIB: $MY_SYSLIB_DIR
|
217
|
+
MY_SYSLIBRARIES: $MY_SYSLIB_DIR
|
218
|
+
SYSLIBRARIES: $MY_SYSLIB_DIR
|
219
|
+
MY_SYSL: $MY_SYSLIB_DIR
|
220
|
+
SYSMAN: $SYSLINKS/Manuals
|
221
|
+
TRADITIONAL_ETC: /etc
|
222
|
+
INIT_DIR: $TRADITIONAL_ETC/init.d/
|
223
|
+
SYS_SETTINGS: $MY_SYSTEM/Settings
|
224
|
+
ETC: $SYS_SETTINGS
|
225
|
+
SYSSET: $SYS_SETTINGS
|
226
|
+
SYSTASKS: $SYSLINKS/Tasks
|
227
|
+
MY_PKGCONFIG: /usr/lib/pkgconfig # $MY_SYSLIBS/pkgconfig
|
228
|
+
MYPKGCONFIG: $MY_PKGCONFIG
|
229
|
+
PKGCONFIG_DIR: $MY_PKGCONFIG
|
230
|
+
SYSPKGCONFIG: $MY_PKGCONFIG
|
231
|
+
PKG: /usr/lib/pkgconfig
|
232
|
+
# PKG_DIR: $DEPOT/Packages # /Depot/Packages # Unsure about this ...
|
233
|
+
DEPOT_PKG: $PKG_DIR # /Depot/Packages
|
234
|
+
MY_PACKAGES: $PKG_DIR # /Depot/Packages
|
235
|
+
PACKAGE_DIR: $PKG_DIR
|
236
|
+
PACKAGES_DIR: $PKG_DIR #
|
237
|
+
# PKGS: $PKG_DIR # pointer towards MY_PACKAGES. Not sure if this is safe.
|
238
|
+
MY_PKG: $PKG_DIR
|
239
|
+
DEPOT_ISO: $DEPOT/ISOs # /Depot/ISOs
|
240
|
+
DEP_ISO: $DEPOT_ISO # ^^^
|
241
|
+
SYSETC: $ETC
|
242
|
+
FSTAB: /etc/fstab# hmm
|
243
|
+
ULOCAL: $USR/local
|
244
|
+
ULOC: $ULOCAL
|
245
|
+
ULB: $ULOCAL/bin
|
246
|
+
SHARED_FOLDER: $DEPOT/SharedFolder/
|
247
|
+
SHAREDFOLDER: $SHARED_FOLDER
|
248
|
+
ULOCALSHARE: $ULOCAL/share
|
249
|
+
XINITTAB: /etc/inittab # hmm
|
250
|
+
MY_SWAP: $DEV/sda2 # defines your SWAP Partition
|
251
|
+
|
252
|
+
# =========================================================================== #
|
253
|
+
# Some Scripts seem to use $TEMP, so maybe its not a good idea to set this
|
254
|
+
# variable. Use MY_TEMP instead:
|
255
|
+
# =========================================================================== #
|
256
|
+
MY_MNT: /Mount # === MY_MNT # or /mnt
|
257
|
+
MOUNT: $MY_MNT # === MOUNT
|
258
|
+
MY_MOUNT: $MY_MNT # === MY_MOUNT
|
259
|
+
MY_ROOT: /root # === MY_ROOT
|
260
|
+
# USERS: /Users #
|
261
|
+
LOCAL_HOME: $USERS # Pointer to USERS
|
262
|
+
|
263
|
+
# =========================================================================== #
|
264
|
+
# === LAPTOP and Framebuffering
|
265
|
+
#
|
266
|
+
# USING_LAPTOP can be used to test if you are using a laptop or not.
|
267
|
+
# I think this approach is quite clean and can be very nice, if you have
|
268
|
+
# scripts which want to easily test if something is a laptop or not.
|
269
|
+
# =========================================================================== #
|
270
|
+
MY_FRAME_BUFFERING: /dev/fb0
|
271
|
+
USING_LAPTOP: '0' # set to 1 if you are on a laptop, and 0 if you aint
|
272
|
+
# =========================================================================== #
|
273
|
+
# X11 TAG XORG TAG
|
274
|
+
# XORG genutzt obwohl es nit so ganz system spezifisch is - aber genug.
|
275
|
+
# =========================================================================== #
|
276
|
+
# XORG_PREFIX: $MY_PROGRAMS/Xorg/7.4 # Your xorg prefix should come here
|
277
|
+
# XORG_PREFIX: /usr # Your xorg prefix should come here
|
278
|
+
MY_XORG: $MY_PROGRAMS/X11
|
279
|
+
XCONFIG: /etc/X11/xorg.conf # traditionell
|
280
|
+
X11_CONFIG: $XCONFIG
|
281
|
+
# PKG_CONFIG: $SYSLINKS/Executables/pkg-config # /usr/bin/pkg-config /usr/local/bin/pkg-config
|
282
|
+
# PKG_CONFIG: $SYSBIN/pkg-config
|
283
|
+
# PKG_CONFIG is NOT the same as PKG_CONFIG_PATH by the way!
|
284
|
+
# PKG_CONFIG_PATH is in exportrc for now.
|
285
|
+
X11DOC: $MY_XORG/lib/X11/doc
|
286
|
+
MODULES: $ETC/modules # Kernel Modules
|
287
|
+
XORGLOG: /var/log/Xorg.0.log # $VAR waere fuer System
|
288
|
+
# =========================================================================== #
|
289
|
+
# SECURITY TAG PASSWD TAG SHADOW TAG
|
290
|
+
# =========================================================================== #
|
291
|
+
PASSWD: $TRADITIONAL_ETC/passwd
|
292
|
+
SHADOW: $TRADITIONAL_ETC/shadow
|
293
|
+
# =========================================================================== #
|
294
|
+
# Wlan Tag / Firmware Tag
|
295
|
+
# =========================================================================== #
|
296
|
+
FIRMWARE_INSTALL_DIR: /lib/firmware
|
297
|
+
# =========================================================================== #
|
298
|
+
# LILO TAG
|
299
|
+
# If you want to use lilo stuff. Can be useful to keep it.
|
300
|
+
# =========================================================================== #
|
301
|
+
LILO: /etc/lilo.conf
|
302
|
+
# =========================================================================== #
|
303
|
+
# cvs tag svn tag
|
304
|
+
# UPDATE_TYPE is sometimes used to check if you wanna use cvs or svn.
|
305
|
+
# =========================================================================== #
|
306
|
+
UPDATE_TYPE: svn
|
307
|
+
# =========================================================================== #
|
308
|
+
# GRUB TAG
|
309
|
+
# Grub is better than Lilo, or? :-)
|
310
|
+
# =========================================================================== #
|
311
|
+
# GRUBCONF: /System/Kernel/Boot/grub/menu.lst
|
312
|
+
# GRUBCONF: /boot/grub/menu.lst# export GRUBCONF /boot/grub/grub.conf
|
313
|
+
GRUBCONF: /boot/grub/grub.conf
|
314
|
+
GRUBMENU: $GRUBCONF
|
315
|
+
MY_GRUB: $GRUBCONF
|
316
|
+
GRUBLIST: $GRUBCONF
|
317
|
+
GRUB_MENU: $GRUBCONF
|
318
|
+
GRUB: $GRUBCONF
|
319
|
+
|
320
|
+
# ===========================================================================#
|
321
|
+
# === Festplatten tag, hdd tag
|
322
|
+
#
|
323
|
+
# F1 sollte nit verwendet werden. Der Tintin Client hat
|
324
|
+
# sich darueber beschwert, hat zb diesen Teil hier drinnen
|
325
|
+
# F1 is -DUSE_ISO_LATIN_ONE
|
326
|
+
# ===========================================================================#
|
327
|
+
FESTPLATTE1: $MOUNT/HDD1
|
328
|
+
FESTPLATTE2: $MOUNT/HDD2
|
329
|
+
FIRST_HD: $FESTPLATTE1
|
330
|
+
SECOND_HD: $FESTPLATTE2
|
331
|
+
FEST1: $FESTPLATTE1
|
332
|
+
FEST2: $SECOND_HD
|
333
|
+
CDDEV: /dev/cdrom
|
334
|
+
LIVECD: $MOUNT/LIVECD
|
335
|
+
MY_LIVECD: $DEPOT/LIVECD
|
336
|
+
MYLIVECD: $LIVECD
|
337
|
+
|
338
|
+
# =========================================================================== #
|
339
|
+
# === Sys vid things. Depot/Video is one of that. :)
|
340
|
+
# =========================================================================== #
|
341
|
+
DEPOT_VIDEO: $DEPOT/Video
|
342
|
+
DEPVID: $DEPOT_VIDEO
|
343
|
+
ACLOCAL_FLAGS: -I /usr/share/aclocal # e $ACLOCAL_FLAGS
|
344
|
+
|
345
|
+
# ===========================================================================#
|
346
|
+
# Xchat tag
|
347
|
+
# =========================================================================== #
|
348
|
+
XCHATSHAREDIR: /usr/local/share/xchat
|
349
|
+
|
350
|
+
# =========================================================================== #
|
351
|
+
# TMPDIR sollte man nit auf /tmp setzen.
|
352
|
+
# 1) weil /tmp sowieso default ist
|
353
|
+
# 2) weil man evtl nit weiss was da
|
354
|
+
# drin rein gehoert und was nit...
|
355
|
+
# evtl sollte man es gar nit setzen hehe...
|
356
|
+
# export TMPDIR="$MY_PROGRAMS/Temp"
|
357
|
+
# =========================================================================== #
|
358
|
+
|
359
|
+
# =========================================================================== #
|
360
|
+
# === Keyboard
|
361
|
+
#
|
362
|
+
# Specify your system-wide keyboard here (keyboard tag):
|
363
|
+
# =========================================================================== #
|
364
|
+
KEYTABLE: de-latin1-nodeadkeys # e $KEYTABLE
|
365
|
+
KEYBOARDTYPE: pc105
|
366
|
+
KEYMAP: de-latin1
|
367
|
+
PAGER: most # Wenn man pages nit farbig sind, liegts evtl an dieser einstellung ;)
|
368
|
+
|
369
|
+
# =========================================================================== #
|
370
|
+
# === FONTS tag
|
371
|
+
# =========================================================================== #
|
372
|
+
SYSFONTS: $MY_SYSTEM/Fonts
|
373
|
+
MY_FONTS: $SYSFONTS
|
374
|
+
# FONTCONFIG_PATH: /etc/fonts
|
375
|
+
|
376
|
+
# =========================================================================== #
|
377
|
+
# === INPUTRC
|
378
|
+
#
|
379
|
+
# The inputrc variable is used by the Readline program.
|
380
|
+
# =========================================================================== #
|
381
|
+
# INPUTRC: $MY_PROGRAMS/Readline/Settings/inputrc
|
382
|
+
INPUTRC: /etc/inputrc
|
383
|
+
|
384
|
+
# =========================================================================== #
|
385
|
+
# === IS_ON_GOBOLINUX
|
386
|
+
#
|
387
|
+
# If 1 then we are on GoboLinux. Otherwise, we assume to not be on
|
388
|
+
# GoboLinux. This setting supersedes the older environment variable
|
389
|
+
# called GOBOLINUX_LAYOUT.
|
390
|
+
# =========================================================================== #
|
391
|
+
IS_ON_GOBOLINUX: '0'
|
392
|
+
|
393
|
+
# =========================================================================== #
|
394
|
+
# === MY_SYSSHARE_DIR
|
395
|
+
# =========================================================================== #
|
396
|
+
MY_SYSSHARE_DIR: $SYSLINKS/Shared
|
397
|
+
SYSSHARED: $MY_SYSSHARE_DIR
|
398
|
+
SYSSHARE: $MY_SYSSHARE_DIR
|
399
|
+
SYSSHARE_DIR: $MY_SYSSHARE_DIR
|
400
|
+
MY_SYSSHARED: $MY_SYSSHARE_DIR
|
401
|
+
|
402
|
+
# =========================================================================== #
|
403
|
+
# === SYSLINKS is usually either /System/Links or just /System
|
404
|
+
#
|
405
|
+
# The latter is for a simplified directory structure.
|
406
|
+
# =========================================================================== #
|
407
|
+
# SYSLINKS: $MY_SYSTEM/Links
|
408
|
+
SYSLINKS: $MY_SYSTEM
|
409
|
+
SYSLINK: $SYSLINKS
|
410
|
+
SYSDAEMONS: $SYSLINKS/Daemons
|
411
|
+
SYSENV: $SYSLINKS/Environment
|
412
|
+
# SYSEXEC: $SYSLINKS/Executables
|
413
|
+
# SB: $SYSBINARIES # Experimental as of JUN 2011. Disabled September 2017.
|
414
|
+
MY_SYSBINARIES: $MY_SYSBIN
|
415
|
+
|
416
|
+
# =========================================================================== #
|
417
|
+
# === MY_SYSBIN
|
418
|
+
# =========================================================================== #
|
419
|
+
MY_SYSBIN_DIR: /usr/bin # $MY_SYSTEM/Index/bin # <- Used to be "Executables"
|
420
|
+
MY_SYSBIN: $MY_SYSBIN_DIR
|
421
|
+
SYSEXEC: $MY_SYSBIN_DIR
|
422
|
+
SYSBIN_DIR: $MY_SYSBIN_DIR
|
423
|
+
SYSBINARIES: $MY_SYSBIN_DIR
|
424
|
+
# SYSBIN: $MY_SYSBIN_DIR # This one seems to conflict with other settings.
|
425
|
+
|
426
|
+
# =========================================================================== #
|
427
|
+
# === MY_SYSHEADERS
|
428
|
+
# =========================================================================== #
|
429
|
+
MY_SYSHEADERS: /usr/include # $MY_SYSTEM/Index/include
|
430
|
+
# SYSHEADERS: $SYSLINKS/Headers
|
431
|
+
# SYSHEADERS: $MY_SYSTEM/Headers # Freebsd does not like this variable, it seems.
|
432
|
+
# SYSINCLUDE_DIR: $MY_SYSHEADERS # This here may conflict with other settings.
|
433
|
+
# SYSINCLUDES: $MY_SYSHEADERS # This here may conflict as well.
|
434
|
+
SYSINC: $MY_SYSHEADERS # And this here too.
|
435
|
+
# SYSINCLUDE: $MY_SYSHEADERS # And this here as well.
|
436
|
+
SYSINC_DIR: $MY_SYSHEADERS
|
437
|
+
MY_SYSINCLUDE_DIR: $MY_SYSHEADERS
|
438
|
+
SYSINCLUDEE: $MY_SYSHEADERS
|
439
|
+
MY_SYSINCLUDE: $MY_SYSHEADERS
|
440
|
+
MY_SYSINC: $MY_SYSHEADERS
|
441
|
+
SYSI: $MY_SYSHEADERS
|
442
|
+
# SYSH: $MY_SYSHEADERS # I no longer trust the following three ones.
|
443
|
+
# SLH: $MY_SYSHEADERS
|
444
|
+
# SH: $MY_SYSHEADERS
|
445
|
+
|
446
|
+
# =========================================================================== #
|
447
|
+
# === CHARSET
|
448
|
+
#
|
449
|
+
# ISO or Unicode range for charset.
|
450
|
+
# =========================================================================== #
|
451
|
+
CHARSET: UTF-8 # iso8859-1
|
452
|
+
|
453
|
+
# =========================================================================== #
|
454
|
+
# === TZ Tag (Timezone Setting)
|
455
|
+
#
|
456
|
+
# Timezone variable. Setting this variable to an inproper value may lead
|
457
|
+
# to unexpected side effects, in particular for scripts that check for
|
458
|
+
# the TZ environment variable.
|
459
|
+
#
|
460
|
+
# This is hardcoded to my own use case, apologies for that.
|
461
|
+
|
462
|
+
# The UTC Timezone in Austria/Vienna is UTC+2.
|
463
|
+
# =========================================================================== #
|
464
|
+
# TZ: 'Europe/Vienna'
|
465
|
+
# TZ: 'Etc/UTC'
|
466
|
+
TZ: 'Etc/UTC+2'
|
467
|
+
|
468
|
+
# =========================================================================== #
|
469
|
+
# === MY_TEMP
|
470
|
+
# =========================================================================== #
|
471
|
+
# MY_TEMP: $DEPOT/Temp # defines where your /Temp dir resides
|
472
|
+
MY_TEMP: /home/Temp # defines where your /Temp dir resides
|
473
|
+
TMPDIR: $MY_TEMP # As above, but I believe this variable may be used by some programs.
|
474
|
+
TEMP_DIR: $MY_TEMP # And another one.
|
475
|
+
|
476
|
+
# =========================================================================== #
|
477
|
+
# === Programs tag
|
478
|
+
# =========================================================================== #
|
479
|
+
PROGRAMS_DIR: $USERS/Programs
|
480
|
+
MY_PROGRAMS: $PROGRAMS_DIR
|
481
|
+
# PROGRAMS: # or /usr/bin if you want traditional system.
|
482
|
+
# PROGRAMS: /pkg # Trying something different here ... ;)
|
483
|
+
P: $PROGRAMS_DIR # experimental. Try: cd $P
|
484
|
+
|
485
|
+
# =========================================================================== #
|
486
|
+
# === USB tag
|
487
|
+
# =========================================================================== #
|
488
|
+
USB1: $MY_MNT/USB1
|
489
|
+
MOUNT_USB1: $USB1
|
490
|
+
USB2: $MY_MNT/USB2
|
491
|
+
MOUNT_USB2: $USB2
|
492
|
+
USB3: $MY_MNT/USB3
|
493
|
+
MOUNT_USB3: $USB3
|
494
|
+
USB4: $MY_MNT/USB4
|
495
|
+
MOUNT_USB4: $USB4
|
496
|
+
USB5: $MY_MNT/USB5
|
497
|
+
MOUNT_USB5: $USB5
|
498
|
+
USB6: $MY_MNT/USB6
|
499
|
+
|
500
|
+
# =========================================================================== #
|
501
|
+
# === COOKBOOK_DIRECTORY
|
502
|
+
#
|
503
|
+
# This directory should be used to store your cookbook(s). It may be used
|
504
|
+
# in some scripts.
|
505
|
+
# =========================================================================== #
|
506
|
+
COOKBOOK_DIRECTORY: /home/x/programming/ruby/src/rbt/lib/rbt/yaml/
|
507
|
+
REAL_COOKBOOK_DIRECTORY: $COOKBOOK_DIRECTORY/cookbooks
|
508
|
+
|
509
|
+
# =========================================================================== #
|
510
|
+
# === LC_ALL Tag
|
511
|
+
#
|
512
|
+
# Be careful - the priority of LC_ALL is higher than of every other
|
513
|
+
# category, such as LC_TIME, LC_CTYPE etc.
|
514
|
+
#
|
515
|
+
# If LC_ALL is set, then it will overrides all LC_* environment variables
|
516
|
+
# with the given value.
|
517
|
+
# =========================================================================== #
|
518
|
+
# LC_ALL: C
|
519
|
+
# LC_ALL: de_AT.iso88591
|
520
|
+
# LC_ALL: ISO-8859-1
|
521
|
+
# LC_ALL: en_US.ISO-8859-1
|
522
|
+
# LC_ALL: en_US.utf8
|
523
|
+
# LC_ALL: en_US
|
524
|
+
# =========================================================================== #
|
525
|
+
# LC_ALL: en_GB.utf8 # en_GB.UTF-8/
|
526
|
+
LC_ALL: en_US.utf8
|
@@ -0,0 +1 @@
|
|
1
|
+
:psych # or :syck
|
data/lib/rcfiles.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'rcfiles/requires/require_the_rcfiles_project.rb'
|
data/rcfiles.gemspec
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# Gemspec for Project Rcfiles.
|
3
|
+
# =========================================================================== #
|
4
|
+
require 'rcfiles/version/version.rb'
|
5
|
+
require 'rcfiles/toplevel_methods/n_registered_aliases_in_total.rb'
|
6
|
+
require 'roebe/toplevel_methods/misc.rb'
|
7
|
+
|
8
|
+
Gem::Specification.new { |s|
|
9
|
+
|
10
|
+
s.name = 'rcfiles'
|
11
|
+
s.version = Rcfiles::VERSION
|
12
|
+
s.date = Time.now.strftime('%Y-%m-%d')
|
13
|
+
|
14
|
+
DESCRIPTION = <<-EOF
|
15
|
+
|
16
|
+
This project will attempt to 'convert' yaml files into bash-rc files,
|
17
|
+
that is, resource files that can be loaded up in bash or in other
|
18
|
+
shells, such as zsh or fish.
|
19
|
+
|
20
|
+
The project comes with aliases pre-defined to navigate the local
|
21
|
+
filesystem, defaulting to a Linux filesystem. There are also aliases
|
22
|
+
for various programs - program shortcuts such as 'gi' being an alias
|
23
|
+
for 'gimp', and many other aliases.
|
24
|
+
|
25
|
+
Note that the default bundled distribution refers to my own use cases,
|
26
|
+
which may be quite useless to other people. That is why this project
|
27
|
+
allows you to load your own custom dataset, as .yml file, and use
|
28
|
+
it instead. Please have a look at the documentation for more
|
29
|
+
information as to how this is done.
|
30
|
+
|
31
|
+
Currently this gem contains a total of
|
32
|
+
#{Rcfiles.n_registered_aliases_in_total?} registered
|
33
|
+
aliases.
|
34
|
+
|
35
|
+
EOF
|
36
|
+
|
37
|
+
s.summary = DESCRIPTION
|
38
|
+
s.description = DESCRIPTION
|
39
|
+
|
40
|
+
s.extra_rdoc_files = %w()
|
41
|
+
|
42
|
+
s.authors = %w( Robert A. Heiler )
|
43
|
+
s.email = Roebe.email?
|
44
|
+
s.files = Dir['**/*']
|
45
|
+
s.license = 'MIT'
|
46
|
+
s.homepage = 'https://rubygems.org/gems/rcfiles'
|
47
|
+
s.executables = Dir['bin/*'].map { |f| File.basename(f) }
|
48
|
+
|
49
|
+
s.required_ruby_version = '>= '+Roebe.third_most_stable_version_of_ruby
|
50
|
+
s.required_rubygems_version = '>= '+Gem::VERSION
|
51
|
+
s.rubygems_version = '>= '+Gem::VERSION
|
52
|
+
|
53
|
+
s.add_dependency 'colours'
|
54
|
+
s.add_dependency 'convert_global_env'
|
55
|
+
s.add_dependency 'opn'
|
56
|
+
|
57
|
+
}
|