ref
This commit is contained in:
parent
40c2dd06d4
commit
bb65fb968f
@ -45,10 +45,3 @@ alias vis='vim "+set si"'
|
|||||||
|
|
||||||
# net
|
# net
|
||||||
alias ports='netstat -tulanp'
|
alias ports='netstat -tulanp'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
15
.bashrc
15
.bashrc
@ -1,4 +1,19 @@
|
|||||||
|
|
||||||
|
if type shopt 2>/dev/null 1>&2; then
|
||||||
|
|
||||||
|
# corrections
|
||||||
|
shopt -s cdspell
|
||||||
|
shopt -s dirspell
|
||||||
|
|
||||||
|
shopt -s histappend
|
||||||
|
PROMPT_COMMAND='history -a'
|
||||||
|
fi
|
||||||
|
|
||||||
|
export HISTSIZE=10000
|
||||||
|
export HISTIGNORE="&:l[lsa]:[bf]g:exit:q:clear:c:history:h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
parse_git_branch() {
|
parse_git_branch() {
|
||||||
branch="$(git branch --show-current 2> /dev/null)"
|
branch="$(git branch --show-current 2> /dev/null)"
|
||||||
|
|||||||
17
README.md
17
README.md
@ -13,6 +13,7 @@
|
|||||||
## Content
|
## Content
|
||||||
* [Project description](#chapter-0)
|
* [Project description](#chapter-0)
|
||||||
* [SSH](#chapter-1)
|
* [SSH](#chapter-1)
|
||||||
|
* [Tips](#chapter-2)
|
||||||
|
|
||||||
|
|
||||||
<a id="chapter-0"></a>
|
<a id="chapter-0"></a>
|
||||||
@ -22,7 +23,7 @@ Bash config files
|
|||||||
|
|
||||||
|
|
||||||
<a id="chapter-1"></a>
|
<a id="chapter-1"></a>
|
||||||
## SSH:
|
## SSH
|
||||||
|
|
||||||
Create ssh key on local device
|
Create ssh key on local device
|
||||||
|
|
||||||
@ -46,4 +47,16 @@ Using aliases:
|
|||||||
```bash
|
```bash
|
||||||
ssh host_name
|
ssh host_name
|
||||||
sftp host_name
|
sftp host_name
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<a id="chapter-2"></a>
|
||||||
|
## Tips
|
||||||
|
|
||||||
|
### Bash
|
||||||
|
```esc + .``` - last object\
|
||||||
|
```ctrl + r``` - bash_history search\
|
||||||
|
```history -d 130``` - delete 130 line\
|
||||||
|
```history -c``` - delete all history\
|
||||||
|
|
||||||
|
### Vim
|
||||||
|
```d -> ctrl + end``` - delete from cursor to end of file\
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user