Skip to content

Commit

Permalink
Merge pull request #217 from kachick/correct-shells
Browse files Browse the repository at this point in the history
Restrict shellscripts
  • Loading branch information
kachick committed Jul 30, 2023
2 parents e515a42 + a390dfb commit 0faf989
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ args = [
]

[tasks.apply]
script = [
"home-manager switch -f ./home/.config/home-manager/home.nix",
command = 'home-manager'
args = [
'switch',
'-f',
'./home/.config/home-manager/home.nix',
]

[tasks.enable_login_shells]
Expand Down
2 changes: 2 additions & 0 deletions home/.local/share/homemade/bin/bench_shells.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

# ~ my feeling ~
# 50ms : blazing fast!
# 120ms : acceptable
Expand Down
2 changes: 2 additions & 0 deletions home/.local/share/homemade/bin/la.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

set -euo pipefail

exa --long --all --group-directories-first "$@"
2 changes: 2 additions & 0 deletions home/.local/share/homemade/bin/updeps.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

case ${OSTYPE} in
linux*)
sudo apt update --yes && sudo apt upgrade --yes
Expand Down
6 changes: 5 additions & 1 deletion home/.local/share/homemade/bin/zj.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env bash

zellij attach "$(basename "$PWD")" || zellij --session "$(basename "$PWD")"
set -euo pipefail

name="$(basename "$PWD")"

zellij attach "$name" || zellij --session "$name"

0 comments on commit 0faf989

Please sign in to comment.