Merge branch 'master' into kali
This commit is contained in:
commit
fbab1e634c
2 changed files with 16 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit d6f6f4721444555aff8b57df24f84b600b221cb2
|
Subproject commit 3b4586d60019785aa59e0d824a31f283de75d2c3
|
17
.zshrc
17
.zshrc
|
@ -13,6 +13,8 @@ alias gg=lazygit
|
||||||
alias reload="source ~/.zshrc"
|
alias reload="source ~/.zshrc"
|
||||||
alias gls=/bin/ls
|
alias gls=/bin/ls
|
||||||
alias bat=batcat
|
alias bat=batcat
|
||||||
|
alias neorg='nvim -c "Neorg workspace $1"'
|
||||||
|
|
||||||
### non standard aliases
|
### non standard aliases
|
||||||
if [ -f ~/.zsh_aliases ]; then
|
if [ -f ~/.zsh_aliases ]; then
|
||||||
source ~/.zsh_aliases
|
source ~/.zsh_aliases
|
||||||
|
@ -31,8 +33,19 @@ function cachekeys () { exec 2>/dev/null;
|
||||||
function newpass() {
|
function newpass() {
|
||||||
LC_ALL=C tr -dc '[:alnum:]' < /dev/urandom | head -c${1:-$0}
|
LC_ALL=C tr -dc '[:alnum:]' < /dev/urandom | head -c${1:-$0}
|
||||||
}
|
}
|
||||||
setopt autocd # change directory just by typing its name
|
function condac() {
|
||||||
#setopt correct # auto correct mistakes
|
conda activate $@
|
||||||
|
export HOST=$(hostname)
|
||||||
|
}
|
||||||
|
|
||||||
|
### ---- zsh options -------------------------------------
|
||||||
|
setopt autocd
|
||||||
|
setopt correct # auto correct mistakes
|
||||||
|
setopt HIST_FIND_NO_DUPS
|
||||||
|
setopt HIST_IGNORE_ALL_DUPS
|
||||||
|
setopt appendhistory
|
||||||
|
setopt INC_APPEND_HISTORY
|
||||||
|
setopt SHARE_HISTORY
|
||||||
setopt interactivecomments # allow comments in interactive mode
|
setopt interactivecomments # allow comments in interactive mode
|
||||||
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
|
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
|
||||||
setopt nonomatch # hide error message if there is no match for the pattern
|
setopt nonomatch # hide error message if there is no match for the pattern
|
||||||
|
|
Loading…
Add table
Reference in a new issue