File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,14 @@ function make_card {
74
74
return 0
75
75
}
76
76
77
+ function clearscreen {
78
+ printf ' \033c'
79
+ return 0
80
+ }
81
+
82
+
77
83
function run_cards {
78
- clear
84
+ clearscreen
79
85
80
86
local cards_name=$1
81
87
eval " declare -A cards=" ${2#* =}
@@ -140,7 +146,7 @@ function select_file {
140
146
opts+=(" $( to_filename $file ) " )
141
147
done
142
148
143
- clear
149
+ clearscreen
144
150
echo " What would you like to practice?"
145
151
146
152
# list the files
Original file line number Diff line number Diff line change 3
3
pkgs . stdenv . mkDerivation {
4
4
name = "bashcards" ;
5
5
src = ./. ;
6
- phases = "unpackPhase installPhase" ;
6
+ dontBuild = true ;
7
7
installPhase = ''
8
8
mkdir -p $out/bin $out/share/man/man8
9
9
cp bashcards.8 $out/share/man/man8/
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ bashcards = pkgs.callPackage ./derivation.nix { };
5
5
in
6
6
pkgs . mkShell {
7
7
buildInputs = with pkgs ; [
8
- man
9
8
bashcards
9
+ man
10
10
] ;
11
11
}
You can’t perform that action at this time.
0 commit comments