Openbsd.XTerm 10 KB

123456789101112131415161718192021222324252627282930313233
  1. version=pmwiki-2.2.130 ordered=1 urlencoded=1
  2. agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
  3. author=miniontoby
  4. charset=UTF-8
  5. csum=copyright
  6. ctime=1610027390
  7. host=145.132.146.30
  8. name=Openbsd.XTerm
  9. rev=5
  10. targets=
  11. text=If you want just to have your console to look different? Follow this guide%0a%0a%0a!! .kshrc%0a%0aIf you want to let it work good and the best to see though, use .kshrc and do the following%0a%0aadd to your ~/.profile%0a%0a[@export ENV="$HOME/.kshrc"@]%0a%0a%0a!! History file%0a%0aIf you want to let your history of commands be saved do the following%0a%0aadd to your ~/.kshrc%0a%0a[@HISTFILE="$HOME/.ksh_history"%0aHISTSIZE=5000%0aalias __A=$(print '\0020') # ^P = up = previous command%0aalias __B=$(print '\0016') # ^N = down = next command%0aalias __C=$(print '\0006') # ^F = right = forward a character%0aalias __D=$(print '\0002') # ^B = left = back a character%0aalias __H=$(print '\0001') # ^A = home = beginning of line@]%0a%0a%0a!! Standart edit program%0a%0aIf you want your favorite editor to be also used at e.g. crontab, do the following%0a%0aadd to your ~/.kshrc%0a%0a[@export VISUAL="%3cEDITOR COMMAND NAME HERE>"%0aexport EDITOR="$VISUAL"@]%0a%0a%0a!! Colored PS1%0a%0aIf you want your text before where you execute your commands to look sth else (your PS1), then do the following%0a%0a%0a!!! Linux like%0a%0aadd to your ~/.kshrc%0a%0a[@export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] '@]%0a%0a%0a!!! Just your own color with openbsd standart ps1%0a%0aadd to your ~/.kshrc%0a%0a[@export PS1='\[\033[01;%3cCOLOR NUMBER HERE>m\]\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] '@]%0a%0awhere %3cCOLOR NUMBER HERE> equals to one of the below named color codes:%0a%0a* 39 Default foreground color%0a* 30 Black%0a* 31 Red%0a* 32 Green%0a* 33 Yellow%0a* 34 Blue%0a* 35 Magenta%0a* 36 Cyan%0a* 37 Light gray%0a* 90 Dark gray%0a* 91 Light red%0a* 92 Light green%0a* 93 Light yellow%0a* 94 Light blue%0a* 95 Light magenta%0a* 96 Light cyan%0a* 97 White%0a%0a%0a!! Add the title bar to the PS1%0a%0aif you want to get a%0an custom title on your ssh connection, do the following%0a%0a%0a!!! Linux like%0a%0aadd to your ~/.kshrc%0a[@case "$TERM" in%0axterm*|rxvt*)%0a export PS1="\[\e]0;\u@\h: \w\a\]$PS1"%0a ;;%0a*)%0a ;;%0aesac@]%0a%0a%0a!!! Openbsd like%0a%0aadd to your ~/.kshrc%0a%0a[@case "$TERM" in%0axterm*|rxvt*)%0a export PS1="\[\e]0;\h: \w\a\]$PS1"%0a ;;%0a*)%0a ;;%0aesac@]%0a%0a%0a!! Language change %0a%0aIf you are originaly from an other land and you want your console to be translated (not fully but yeah), do the following%0a%0afirst find out if you language exists:%0a%0a[@locale -a | grep "%3cThe two characters of you language>"@]%0a%0athen use that output (if there are multiply just choose 1 line) as your %3cCODE HERE>%0a%0aadd to your ~/.kshrc%0a%0a[@export LANG=%3cCODE HERE>%0aexport LC_ALL=%3cCODE HERE>@]%0a%0a%0a!! Colored ls%0a%0aIf you want colors in you ls use colorls, check here how to download it%0a%0ainstall colorls: [@doas pkg_add colorls @]%0a%0aadd to your ~/.kshrc%0a%0a[@alias ls='colorls -G'%0aexport LSCOLORS=fxexcxdxbxegedabagacad@] %0a%0athe LSCOLORS you can change to what ever you want, use this way:%0a[@Colors:%0aa black%0ab red%0ac green%0ad brown%0ae blue%0af magenta%0ag cyan%0ah light grey%0aA bold black, usually shows up as dark grey%0aB bold red%0aC bold green%0aD bold brown, usually shows up as yellow%0aE bold blue%0aF bold magenta%0aG bold cyan%0aH bold light grey; looks like bright white%0ax default foreground or background%0a%0aThe order of the attributes are as follows:%0a1. directory%0a2. symbolic link%0a3. socket%0a4. pipe%0a5. executable%0a6. block special%0a7. character special%0a8. executable with setuid bit set%0a9. executable with setgid bit set%0a10. directory writable to others, with sticky bit%0a11. directory writable to others, without sticky bit@]%0a%0athere are 22 chars in the LS_COLORS string. %0a%0athe odd number characters are the foreground color and the even number characters are the background color.%0a%0aThe (nearly) linux like colorcode is the following: %0a[@export LS_COLORS='ExGxxxxxCxxxxxCxCxBxbx'@]%0a%0a----%0a%0aCopyright (C) 2021 by Miniontoby %3cminiontoby@ircnow.org>%0a
  12. time=1610891322
  13. author:1610891322=miniontoby
  14. csum:1610891322=copyright
  15. diff:1610891322:1610719990:=177c177%0a%3c Copyright (C) 2021 by Miniontoby %3cminiontoby@ircnow.org>%0a---%0a> Writen by Miniontoby%0a
  16. host:1610891322=145.132.146.30
  17. author:1610719990=miniontoby
  18. csum:1610719990=color codes
  19. diff:1610719990:1610717986:=133,173c133,136%0a%3c export LSCOLORS=fxexcxdxbxegedabagacad@] %0a%3c %0a%3c the LSCOLORS you can change to what ever you want, use this way:%0a%3c [@Colors:%0a%3c a black%0a%3c b red%0a%3c c green%0a%3c d brown%0a%3c e blue%0a%3c f magenta%0a%3c g cyan%0a%3c h light grey%0a%3c A bold black, usually shows up as dark grey%0a%3c B bold red%0a%3c C bold green%0a%3c D bold brown, usually shows up as yellow%0a%3c E bold blue%0a%3c F bold magenta%0a%3c G bold cyan%0a%3c H bold light grey; looks like bright white%0a%3c x default foreground or background%0a%3c %0a%3c The order of the attributes are as follows:%0a%3c 1. directory%0a%3c 2. symbolic link%0a%3c 3. socket%0a%3c 4. pipe%0a%3c 5. executable%0a%3c 6. block special%0a%3c 7. character special%0a%3c 8. executable with setuid bit set%0a%3c 9. executable with setgid bit set%0a%3c 10. directory writable to others, with sticky bit%0a%3c 11. directory writable to others, without sticky bit@]%0a%3c %0a%3c there are 22 chars in the LS_COLORS string. %0a%3c %0a%3c the odd number characters are the foreground color and the even number characters are the background color.%0a%3c %0a%3c The (nearly) linux like colorcode is the following: %0a%3c [@export LS_COLORS='ExGxxxxxCxxxxxCxCxBxbx'@]%0a---%0a> LSCOLORS=fxexcxdxbxegedabagacad%0a> export LSCOLORS@] %0a> %0a> the LSCOLORS you can change to what ever you want, check: [@man colorls@]%0a
  20. host:1610719990=145.132.146.30
  21. author:1610717986=miniontoby
  22. csum:1610717986=colorls
  23. diff:1610717986:1610027441:=113d112%0a%3c %0a115d113%0a%3c %0a123,136d120%0a%3c %0a%3c !! Colored ls%0a%3c %0a%3c If you want colors in you ls use colorls, check here how to download it%0a%3c %0a%3c install colorls: [@doas pkg_add colorls @]%0a%3c %0a%3c add to your ~/.kshrc%0a%3c %0a%3c [@alias ls='colorls -G'%0a%3c LSCOLORS=fxexcxdxbxegedabagacad%0a%3c export LSCOLORS@] %0a%3c %0a%3c the LSCOLORS you can change to what ever you want, check: [@man colorls@]%0a
  24. host:1610717986=145.132.146.30
  25. author:1610027441=miniontoby
  26. csum:1610027441=enters
  27. diff:1610027441:1610027390:=9d8%0a%3c %0a18d16%0a%3c %0a33d30%0a%3c %0a46d42%0a%3c %0a53d48%0a%3c %0a55d49%0a%3c %0a79,82c73,75%0a%3c if you want to get a%0a%3c n custom title on your ssh connection, do the following%0a%3c %0a%3c %0a---%0a> if you want to get an custom title on your ssh connection, do the following%0a> %0a> %0a98d90%0a%3c %0a117d108%0a%3c %0a
  28. host:1610027441=145.132.146.30
  29. author:1610027390=miniontoby
  30. csum:1610027390=created and fully writen
  31. diff:1610027390:1610027390:=1,115d0%0a%3c If you want just to have your console to look different? Follow this guide%0a%3c %0a%3c %0a%3c !! .kshrc%0a%3c %0a%3c If you want to let it work good and the best to see though, use .kshrc and do the following%0a%3c %0a%3c add to your ~/.profile%0a%3c [@export ENV="$HOME/.kshrc"@]%0a%3c %0a%3c %0a%3c !! History file%0a%3c %0a%3c If you want to let your history of commands be saved do the following%0a%3c %0a%3c add to your ~/.kshrc%0a%3c [@HISTFILE="$HOME/.ksh_history"%0a%3c HISTSIZE=5000%0a%3c alias __A=$(print '\0020') # ^P = up = previous command%0a%3c alias __B=$(print '\0016') # ^N = down = next command%0a%3c alias __C=$(print '\0006') # ^F = right = forward a character%0a%3c alias __D=$(print '\0002') # ^B = left = back a character%0a%3c alias __H=$(print '\0001') # ^A = home = beginning of line@]%0a%3c %0a%3c %0a%3c !! Standart edit program%0a%3c %0a%3c If you want your favorite editor to be also used at e.g. crontab, do the following%0a%3c %0a%3c add to your ~/.kshrc%0a%3c [@export VISUAL="%3cEDITOR COMMAND NAME HERE>"%0a%3c export EDITOR="$VISUAL"@]%0a%3c %0a%3c %0a%3c !! Colored PS1%0a%3c %0a%3c If you want your text before where you execute your commands to look sth else (your PS1), then do the following%0a%3c %0a%3c %0a%3c !!! Linux like%0a%3c %0a%3c add to your ~/.kshrc%0a%3c [@export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] '@]%0a%3c %0a%3c %0a%3c !!! Just your own color with openbsd standart ps1%0a%3c %0a%3c add to your ~/.kshrc%0a%3c [@export PS1='\[\033[01;%3cCOLOR NUMBER HERE>m\]\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] '@]%0a%3c where %3cCOLOR NUMBER HERE> equals to one of the below named color codes:%0a%3c %0a%3c * 39 Default foreground color%0a%3c * 30 Black%0a%3c * 31 Red%0a%3c * 32 Green%0a%3c * 33 Yellow%0a%3c * 34 Blue%0a%3c * 35 Magenta%0a%3c * 36 Cyan%0a%3c * 37 Light gray%0a%3c * 90 Dark gray%0a%3c * 91 Light red%0a%3c * 92 Light green%0a%3c * 93 Light yellow%0a%3c * 94 Light blue%0a%3c * 95 Light magenta%0a%3c * 96 Light cyan%0a%3c * 97 White%0a%3c %0a%3c %0a%3c !! Add the title bar to the PS1%0a%3c %0a%3c if you want to get an custom title on your ssh connection, do the following%0a%3c %0a%3c %0a%3c !!! Linux like%0a%3c %0a%3c add to your ~/.kshrc%0a%3c [@case "$TERM" in%0a%3c xterm*|rxvt*)%0a%3c export PS1="\[\e]0;\u@\h: \w\a\]$PS1"%0a%3c ;;%0a%3c *)%0a%3c ;;%0a%3c esac@]%0a%3c %0a%3c %0a%3c !!! Openbsd like%0a%3c %0a%3c add to your ~/.kshrc%0a%3c [@case "$TERM" in%0a%3c xterm*|rxvt*)%0a%3c export PS1="\[\e]0;\h: \w\a\]$PS1"%0a%3c ;;%0a%3c *)%0a%3c ;;%0a%3c esac@]%0a%3c %0a%3c %0a%3c !! Language change %0a%3c %0a%3c If you are originaly from an other land and you want your console to be translated (not fully but yeah), do the following%0a%3c %0a%3c first find out if you language exists:%0a%3c [@locale -a | grep "%3cThe two characters of you language>"@]%0a%3c then use that output (if there are multiply just choose 1 line) as your %3cCODE HERE>%0a%3c %0a%3c add to your ~/.kshrc%0a%3c [@export LANG=%3cCODE HERE>%0a%3c export LC_ALL=%3cCODE HERE>@]%0a%3c %0a%3c %0a%3c ----%0a%3c %0a%3c Writen by Miniontoby%0a
  32. host:1610027390=145.132.146.30