Skip to content

Commit c225a60

Browse files
Merge pull request #1 from software-for-life/creating_source
Creating source
2 parents d22a11e + a9eaa2b commit c225a60

File tree

7 files changed

+202
-0
lines changed

7 files changed

+202
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

Makefile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
# This file is part of 'bash-helper'.
4+
#
5+
# Copyright 2018 Sergio Lindo <sergiolindo.empresa@gmail.com>
6+
#
7+
# 'bash-helper' is free software: you can redistribute it and/or
8+
# modify it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or (at your
10+
# option) any later version.
11+
#
12+
# 'bash-helper' is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15+
# Public License for more details.
16+
# You should have received a copy of the GNU General Public License along with
17+
# 'bash-helper'. If not, see <http://www.gnu.org/licenses/>.
18+
19+
path_bin = $(DESTDIR)/usr/bin/
20+
21+
default:
22+
@echo "use 'make install' to install"
23+
24+
.PHONY: install
25+
install:
26+
mkdir -p $(path_bin)
27+
install -m 0655 src/duh.sh "$(path_bin)"
28+
install -m 0655 src/l.sh "$(path_bin)"
29+
install -m 0655 src/li.sh "$(path_bin)"
30+
install -m 0655 src/lol.sh "$(path_bin)"
31+
install -m 0655 src/lola.sh "$(path_bin)"
32+
ln -s /usr/bin/duh.sh "$(path_bin)"/duh
33+
ln -s /usr/bin/l.sh "$(path_bin)"/l
34+
ln -s /usr/bin/li.sh "$(path_bin)"/li
35+
ln -s /usr/bin/lol.sh "$(path_bin)"/lol
36+
ln -s /usr/bin/lola.sh "$(path_bin)"/lola

src/duh.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
# This file is part of 'bash-helper'.
4+
#
5+
# Copyright 2018 Sergio Lindo <sergiolindo.empresa@gmail.com>
6+
#
7+
# 'bash-helper' is free software: you can redistribute it and/or
8+
# modify it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or (at your
10+
# option) any later version.
11+
#
12+
# 'bash-helper' is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15+
# Public License for more details.
16+
# You should have received a copy of the GNU General Public License along with
17+
# 'bash-helper'. If not, see <http://www.gnu.org/licenses/>.
18+
19+
# Name: du.sh
20+
#
21+
# Synopsis:
22+
# du.sh
23+
# Example: du.sh
24+
#
25+
# Description:
26+
# Alias for bash command du.
27+
# -h "Human-readable" output. Use unit suffixes:
28+
# Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte.
29+
#
30+
du -h

src/l.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
3+
# This file is part of 'bash-helper'.
4+
#
5+
# Copyright 2018 Sergio Lindo <sergiolindo.empresa@gmail.com>
6+
#
7+
# 'bash-helper' is free software: you can redistribute it and/or
8+
# modify it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or (at your
10+
# option) any later version.
11+
#
12+
# 'bash-helper' is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15+
# Public License for more details.
16+
# You should have received a copy of the GNU General Public License along with
17+
# 'bash-helper'. If not, see <http://www.gnu.org/licenses/>.
18+
19+
# Name: l.sh
20+
#
21+
# Synopsis:
22+
# l.sh
23+
# Example: l.sh
24+
#
25+
# Description:
26+
# Alias for bash command ls.
27+
# -C Force multi-column output; this is the default when output is to a terminal.
28+
# -F Display a slash (`/') immediately after each pathname that is a directory,
29+
# an asterisk (`*') after each that is executable,
30+
# an at sign (`@') after each symbolic link,
31+
# an equals sign (`=') after each socket,
32+
# a percent sign (`%') after each whiteout,
33+
# and a vertical bar (`|') after each that is a FIFO.
34+
# --color[=WHEN] Colorize the output;
35+
# WHEN can be 'always' (default if omitted), 'auto', or 'never'.
36+
#
37+
ls -CF --color=always

src/li.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
# This file is part of 'bash-helper'.
4+
#
5+
# Copyright 2018 Sergio Lindo <sergiolindo.empresa@gmail.com>
6+
#
7+
# 'bash-helper' is free software: you can redistribute it and/or
8+
# modify it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or (at your
10+
# option) any later version.
11+
#
12+
# 'bash-helper' is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15+
# Public License for more details.
16+
# You should have received a copy of the GNU General Public License along with
17+
# 'bash-helper'. If not, see <http://www.gnu.org/licenses/>.
18+
19+
# Name: li.sh
20+
#
21+
# Synopsis:
22+
# li.sh
23+
# Example: li.sh
24+
#
25+
# Description:
26+
# Alias for bash command ls.
27+
# Extends l.sh
28+
# -1 (The numeric digit ``one''.)
29+
# Force output to be one entry per line.
30+
# This is the default when output is not to a terminal.
31+
#
32+
l.sh -1

src/lol.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
# This file is part of 'bash-helper'.
4+
#
5+
# Copyright 2018 Sergio Lindo <sergiolindo.empresa@gmail.com>
6+
#
7+
# 'bash-helper' is free software: you can redistribute it and/or
8+
# modify it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or (at your
10+
# option) any later version.
11+
#
12+
# 'bash-helper' is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15+
# Public License for more details.
16+
# You should have received a copy of the GNU General Public License along with
17+
# 'bash-helper'. If not, see <http://www.gnu.org/licenses/>.
18+
19+
# Name: lol.sh
20+
#
21+
# Synopsis:
22+
# lol.sh
23+
# Example: lol.sh
24+
#
25+
# Description:
26+
# Alias for bash command ls.
27+
# Extends l.sh
28+
# -l (The lowercase letter ``ell''.) List in long format.
29+
# If the output is to a terminal, a total sum for all the file
30+
# sizes is output on a line before the long listing.
31+
# -h When used with the -l option, use unit suffixes:
32+
# Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte
33+
# in order to reduce the number of digits to three or less using base 2 for sizes.
34+
#
35+
l.sh -lh

src/lola.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
# This file is part of 'bash-helper'.
4+
#
5+
# Copyright 2018 Sergio Lindo <sergiolindo.empresa@gmail.com>
6+
#
7+
# 'bash-helper' is free software: you can redistribute it and/or
8+
# modify it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or (at your
10+
# option) any later version.
11+
#
12+
# 'bash-helper' is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15+
# Public License for more details.
16+
# You should have received a copy of the GNU General Public License along with
17+
# 'bash-helper'. If not, see <http://www.gnu.org/licenses/>.
18+
19+
# Name: lola.sh
20+
#
21+
# Synopsis:
22+
# lola.sh
23+
# Example: lola.sh
24+
#
25+
# Description:
26+
# Alias for bash command ls.
27+
# Extends lol.sh
28+
# -A List all entries except for . and ..
29+
# Always set for the super-user.
30+
#
31+
lol.sh -A

0 commit comments

Comments
 (0)