diff --git a/LICENSE b/LICENSE index 2846a41..697ae1d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 sup39 +Copyright (c) 2020-2021 sup39 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c20a7f9..37ab599 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ source $HOME/.zshrc Alternatively, use the shortened url: ```zsh # Download setup file and execute it -curl -sL 301.sup39.ml/zsh-setup | sh - +curl -sL link.sup39.dev/zsh-setup | sh - # Finally, source the zshrc file source $HOME/.zshrc @@ -23,5 +23,6 @@ source $HOME/.zshrc ## Content - `~/.zshenv` - `~/.zshrc` +- `~/.screenrc` :bulb: No overwriting if exists diff --git a/screenrc b/screenrc new file mode 100644 index 0000000..188f87f --- /dev/null +++ b/screenrc @@ -0,0 +1,23 @@ +altscreen on +term xterm-256color +vbell off + +# status bar +## https://www.gnu.org/software/screen/manual/html_node/String-Escapes.html#String-Escapes +hardstatus alwaysfirstline "%{= Ck} %-w%{= Yk}%n %t%{-}%+w" + +# mapping +## https://www.gnu.org/software/screen/manual/html_node/Default-Key-Bindings.html#Default-Key-Bindings +escape ^_^_ +bind i title +bind ^I title +bind I info +bind ^S source ~/.screenrc +bind s split +bind ; colon +bind ^E colon "screen -t " +bind w focus +bind ^W focus +### disable lockscreen +bind ^X +bind x diff --git a/setup.sh b/setup.sh index e6f9328..c1f9cd6 100644 --- a/setup.sh +++ b/setup.sh @@ -1,5 +1,5 @@ #!/bin/sh -# .zshrc -[ -f $HOME/.zshrc ] || curl https://raw.githubusercontent.com/sup39/zsh-setup/master/zshrc -o $HOME/.zshrc -# .zshenv -[ -f $HOME/.zshenv ] || curl https://raw.githubusercontent.com/sup39/zsh-setup/master/zshenv -o $HOME/.zshenv +baseURL="https://raw.githubusercontent.com/sup39/zsh-setup/master" +[ -f $HOME/.zshrc ] || curl $baseURL/zshrc -o $HOME/.zshrc +[ -f $HOME/.zshenv ] || curl $baseURL/zshenv -o $HOME/.zshenv +[ -f $HOME/.screenrc ] || curl $baseURL/screenrc -o $HOME/.screenrc