ref
This commit is contained in:
parent
40c2dd06d4
commit
bb65fb968f
@ -45,10 +45,3 @@ alias vis='vim "+set si"'
|
||||
|
||||
# net
|
||||
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() {
|
||||
branch="$(git branch --show-current 2> /dev/null)"
|
||||
|
||||
15
README.md
15
README.md
@ -13,6 +13,7 @@
|
||||
## Content
|
||||
* [Project description](#chapter-0)
|
||||
* [SSH](#chapter-1)
|
||||
* [Tips](#chapter-2)
|
||||
|
||||
|
||||
<a id="chapter-0"></a>
|
||||
@ -22,7 +23,7 @@ Bash config files
|
||||
|
||||
|
||||
<a id="chapter-1"></a>
|
||||
## SSH:
|
||||
## SSH
|
||||
|
||||
Create ssh key on local device
|
||||
|
||||
@ -47,3 +48,15 @@ Using aliases:
|
||||
ssh 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