Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Screen tips
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sh
Screen tips
Commits
2cdddf21
Commit
2cdddf21
authored
2 months ago
by
Administrator
Browse files
Options
Downloads
Plain Diff
Merge branch 'default' into 'main'
Add default .screenrc See merge request
!2
parents
d0bf47d4
d50a7c89
Loading
Loading
1 merge request
!2
Add default .screenrc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.screenrc
+47
-0
47 additions, 0 deletions
.screenrc
README.md
+18
-4
18 additions, 4 deletions
README.md
with
65 additions
and
4 deletions
.screenrc
0 → 100644
+
47
−
0
View file @
2cdddf21
# instead Ctrl-a use Ctrl-g
# second g is used if you really need to sent Ctrl-g
# keep Ctrl+a on servers with ssh access only so you can switch from main screen
escape ^Gf
# https://github.com/tpope/dotfiles/blob/master/.screenrc
startup_message off
shell -$SHELL
bind j next
bind ^J next
bind k prev
# ctrl+g+y copy above line
bind ^Y eval "copy" "stuff kY" "paste ."
bind y eval "copy" "stuff kY" "paste ."
defscrollback 99999
scrollback 99999
# https://unix.stackexchange.com/a/96022/150895
# bindkey ^C kill
#
# create new region ctrl-a+|
# go to next region with ctrl-a + Tab
# close a region with ctrl-a + X (windows will stay)
# bind ' ' layout next # <- actually means Ctrl-a + Space, go to next layout
# (currenyl bind ' ' next # ctrl-a + space is go to next window)
# with ctrl-a + " you can see all available windows
# ctrl-a + k is to kill window (and it's proccess)
# https://superuser.com/a/331181
# copy the screen pastbuffer to the MacOSX pastebord
# create tmp file which will be a buffer location
screen bash -c "touch /tmp/please-touch-me; exec bash"
bufferfile /tmp/please-touch-me
bindkey -m ' ' eval 'stuff \040' 'writebuf' 'exec sh -c "[ -f /usr/bin/pbcopy ] && /usr/bin/pbcopy < /tmp/please-touch-me || ([ -f /usr/bin/xsel ] && /usr/bin/xsel --clipboard --input < /tmp/please-touch-me)"'
# http://superuser.com/questions/126606/how-to-get-mac-os-x-terminal-app-and-screen-vim-scrolling-to-play-nice/316900#316900
termcapinfo xterm-256color|xterm-color|xterm|xterms|xs|rxvt ti@:te@
# Allow bold colors - necessary for some reason
attrcolor b ".I"
# Change the hardstatus settings to give an window list at the bottom of the
# screen with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}%{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}'
This diff is collapsed.
Click to expand it.
README.md
+
18
−
4
View file @
2cdddf21
#
GNU s
creen
remote multiuser access help using ssh command
#
S
creen
tips
Simple bash script which user can run to temporary change password and
User can initialy ssh
## Default configuration
Clone repo
```
mkdir ~/trk.tools/sh
cd ~/trk.tools/sh
git clone https://trk.tools/sh/screen-tips.git
```
and link the file
```
ln -s ~/trk.tools/sh/screen-tips/.screenrc ~/.screenrc
```
## Development
## Remote multiuser access help using ssh and GNU screen
Simple bash script which user can run to temporary change password and
User can initialy ssh
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment