Add terminal log using asciinema
This commit is contained in:
parent
6f6ca6f79d
commit
41935c352c
5 changed files with 23 additions and 0 deletions
|
@ -7,6 +7,7 @@ alias aliases='$EDITOR ~/.config/aliasrc && . ~/.config/aliasrc'
|
|||
alias aliases.local='$EDITOR ~/.config/aliasrc.local && . ~/.config/aliasrc'
|
||||
# shellcheck disable=2154
|
||||
alias arch-deps2deps='set -a; source PKGBUILD; set +a; paru -S --asdeps --noconfirm $depends && paru -Ui --rebuild'
|
||||
alias asciinema-clear-log='if [ -f "$ASCIINEMA_LOG_FILE" ]; then \rm -v "$ASCIINEMA_LOG_FILE"; else echo "No log file found"; fi'
|
||||
|
||||
alias bspwm-default='echo "default" > /tmp/bspwm_mode; bspc wm -r'
|
||||
alias bspwm-present='echo "presenter" > /tmp/bspwm_mode; bspc wm -r'
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
export AUTOSTART_DISPLAY="Hyprland"
|
||||
export ASCIINEMA_LOG="1"
|
||||
|
||||
export MONITOR_PRIMARY="DisplayPort-0"
|
||||
export MONITOR_SECONDARY="HDMI-A-0"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
||||
asciinema # tool to record terminal sessions
|
||||
bat # cat-alternative
|
||||
direnv # tool to load custom environments
|
||||
docker-credential-helpers
|
||||
|
|
|
@ -122,3 +122,5 @@ source source-remote-file \
|
|||
|
||||
[ -x "$(command -v direnv)" ] && eval "$(direnv hook zsh)"
|
||||
[ -x "$(command -v starship)" ] && eval "$(starship init zsh)"
|
||||
|
||||
asciinema-log && exit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue