Gen 318: moved cd and ls overlay functions back to zshell.nix
This commit is contained in:
@@ -8,11 +8,9 @@
|
|||||||
|
|
||||||
splash = pkgs.writeShellScriptBin "splash" (builtins.readFile ./scripts/splash.sh);
|
splash = pkgs.writeShellScriptBin "splash" (builtins.readFile ./scripts/splash.sh);
|
||||||
switchmon = pkgs.writeShellScriptBin "switchmon" (builtins.readFile ./scripts/switchmon.sh);
|
switchmon = pkgs.writeShellScriptBin "switchmon" (builtins.readFile ./scripts/switchmon.sh);
|
||||||
ls = pkgs.writeShellScriptBin "ls" (builtins.readFile ./scripts/ls.sh);
|
|
||||||
nixswitch = pkgs.writeShellScriptBin "nixswitch" (builtins.readFile ./scripts/nixswitch.sh);
|
nixswitch = pkgs.writeShellScriptBin "nixswitch" (builtins.readFile ./scripts/nixswitch.sh);
|
||||||
garbage-collect = pkgs.writeShellScriptBin "garbage-collect" (builtins.readFile ./scripts/garbage-collect.sh);
|
garbage-collect = pkgs.writeShellScriptBin "garbage-collect" (builtins.readFile ./scripts/garbage-collect.sh);
|
||||||
scheck = pkgs.writeShellScriptBin "scheck" (builtins.readFile ./scripts/s_check.sh);
|
scheck = pkgs.writeShellScriptBin "scheck" (builtins.readFile ./scripts/s_check.sh);
|
||||||
cd = pkgs.writeShellScriptBin "cd" (builtins.readFile ./scripts/cd.sh);
|
|
||||||
mcd = pkgs.writeShellScriptBin "mcd" (builtins.readFile ./scripts/mcd.sh);
|
mcd = pkgs.writeShellScriptBin "mcd" (builtins.readFile ./scripts/mcd.sh);
|
||||||
crs = pkgs.writeShellScriptBin "crs" (builtins.readFile ./scripts/crs.sh);
|
crs = pkgs.writeShellScriptBin "crs" (builtins.readFile ./scripts/crs.sh);
|
||||||
nixcommit = pkgs.writeShellScriptBin "nixcommit" (builtins.readFile ./scripts/nixcommit.sh);
|
nixcommit = pkgs.writeShellScriptBin "nixcommit" (builtins.readFile ./scripts/nixcommit.sh);
|
||||||
@@ -39,11 +37,9 @@
|
|||||||
record = pkgs.writeScriptBin "record" (builtins.readFile ./scripts/record.sh);
|
record = pkgs.writeScriptBin "record" (builtins.readFile ./scripts/record.sh);
|
||||||
in {
|
in {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
ls
|
|
||||||
nixswitch
|
nixswitch
|
||||||
garbage-collect
|
garbage-collect
|
||||||
scheck
|
scheck
|
||||||
cd
|
|
||||||
mcd
|
mcd
|
||||||
crs
|
crs
|
||||||
nixcommit
|
nixcommit
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/run/current-system/sw/bin/bash
|
|
||||||
|
|
||||||
export SOUNDS_ENABLED=0
|
|
||||||
eza -1 --group-directories-first --icons "$@"
|
|
||||||
builtin cd "$@" || exit
|
|
||||||
export SOUNDS_ENABLED=1
|
|
||||||
s_check && (aplay ~/sound/sys/cd.wav > /dev/null 2>&1 &)
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/run/current-system/sw/bin/bash
|
|
||||||
|
|
||||||
eza -1 --group-directories-first --icons "$@"
|
|
||||||
s_check && runbg aplay ~/sound/sys/ls.wav
|
|
||||||
@@ -61,6 +61,19 @@
|
|||||||
nvimcfg = "nvim $HOME/dots/nixvim/config";
|
nvimcfg = "nvim $HOME/dots/nixvim/config";
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
|
|
||||||
|
ls() {
|
||||||
|
eza -1 --group-directories-first --icons "$@"
|
||||||
|
s_check && runbg aplay ~/sound/sys/ls.wav
|
||||||
|
}
|
||||||
|
|
||||||
|
cd() {
|
||||||
|
export SOUNDS_ENABLED=0
|
||||||
|
eza -1 --group-directories-first --icons "$@"
|
||||||
|
builtin cd "$@" || exit
|
||||||
|
export SOUNDS_ENABLED=1
|
||||||
|
s_check && (aplay ~/sound/sys/cd.wav > /dev/null 2>&1 &)
|
||||||
|
}
|
||||||
if [ ! -e $HOME/.zsh_history ]; then
|
if [ ! -e $HOME/.zsh_history ]; then
|
||||||
touch $HOME/.zsh_history
|
touch $HOME/.zsh_history
|
||||||
chmod 600 $HOME/.zsh_history
|
chmod 600 $HOME/.zsh_history
|
||||||
|
|||||||
Reference in New Issue
Block a user