Compare commits
4 commits
91b37c860f
...
7d80dece2e
Author | SHA1 | Date | |
---|---|---|---|
7d80dece2e | |||
7db8503e41 | |||
861d92dcd4 | |||
2e11b2f5ad |
2 changed files with 17 additions and 3 deletions
|
@ -1 +1 @@
|
|||
Subproject commit d6f6f4721444555aff8b57df24f84b600b221cb2
|
||||
Subproject commit 65f58457886ff2a957dc5f1bcb45d1fd97becb5f
|
18
.zshrc
18
.zshrc
|
@ -13,6 +13,8 @@ alias gg=lazygit
|
|||
alias reload="source ~/.zshrc"
|
||||
alias gls=/bin/ls
|
||||
alias bat=batcat
|
||||
alias neorg='nvim -c "Neorg workspace $1"'
|
||||
|
||||
### non standard aliases
|
||||
if [ -f ~/.zsh_aliases ]; then
|
||||
source ~/.zsh_aliases
|
||||
|
@ -31,8 +33,19 @@ function cachekeys () { exec 2>/dev/null;
|
|||
function newpass() {
|
||||
LC_ALL=C tr -dc '[:alnum:]' < /dev/urandom | head -c${1:-$0}
|
||||
}
|
||||
setopt autocd # change directory just by typing its name
|
||||
#setopt correct # auto correct mistakes
|
||||
function condac() {
|
||||
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 magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
|
||||
setopt nonomatch # hide error message if there is no match for the pattern
|
||||
|
@ -295,3 +308,4 @@ fi
|
|||
if [ -f /etc/zsh_command_not_found ]; then
|
||||
. /etc/zsh_command_not_found
|
||||
fi
|
||||
=======
|
||||
|
|
Loading…
Add table
Reference in a new issue