Add zshrc

This commit is contained in:
Arne Keller 2019-03-05 00:55:06 +01:00
parent ff29a64784
commit 4c62ccc8c8

99
.zshrc Normal file
View File

@ -0,0 +1,99 @@
#export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools
#export ANDROID_SDK=$HOME/bin/android-sdk
#export ANDROID_NDK=$HOME/bin/android-ndk
export LANG=en_US.utf8
#export REPORTTIME=0
export RUST_SRC_PATH=$HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src
export NPM_PACKAGES="${HOME}/.local/share/npm"
export PATH="$HOME/.gem/ruby/2.5.0/bin:$HOME/.local/share/npm/bin:$PATH"
export PATH=$PATH:/usr/local/go/bin
#alias ski="sk --ansi -i -c 'ag --color \"{}\"'"
alias ski="sk --ansi -c 'rg --color=always --line-number \"{}\"'"
alias ls-partitions="lsblk"
alias ls-network="sudo ss -lntup"
alias heroku=/opt/heroku/bin/heroku
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow -g "\!\{.git,node_modules\}/*" 2> /dev/null'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
#eval $(thefuck --alias)
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=1000000000
setopt APPEND_HISTORY # Dont erase history
setopt EXTENDED_HISTORY # Add additional data to history like timestamp
setopt INC_APPEND_HISTORY # Add immediately
setopt SHARE_HISTORY # Share history between session/terminals
bindkey -e
# End of lines configured by zsh-newuser-install
zstyle :compinstall filename '/home/arne/.zshrc'
. bin/z.sh
source $HOME/.profilerc
#source $HOME/.profile
# emscripten
#source $HOME/bin/emsdk_env.sh > /dev/null
#bindkey -e
bindkey "^[[1;5D" backward-word
bindkey "^[[1;5C" forward-word
### Added by Zplugin's installer START zplugin
#source '/home/arne/.zplugin/bin/zplugin.zsh'
#autoload -Uz _zplugin
#(( ${+_comps} )) && _comps[zplugin]=_zplugin
### End of Zplugin's installer chunk
#zplugin load psprint/history-search-multi-word
# reload completions
#rm -f $HOME/.zcompdump; compinit
# END zplugin
autoload -Uz compinit
function mouse_around_rand {
while true; do
sleep "$1"
xdotool mousemove_relative -- $(($RANDOM % 10)) $(($RANDOM % 10))
xdotool mousemove_relative -- -$(($RANDOM % 10)) -$(($RANDOM % 10))
done
}
# The next line updates PATH for the Google Cloud SDK.
#if [ -f '/tmp/google-cloud-sdk/path.zsh.inc' ]; then source '/tmp/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
#if [ -f '/tmp/google-cloud-sdk/completion.zsh.inc' ]; then source '/tmp/google-cloud-sdk/completion.zsh.inc'; fi
function git_github()
{
git config user.name FliegendeWurst
git config user.email 2012gdwu@web.de
git config user.signingkey CA38E82B54B32A88
git config commit.gpgsign true
}
function git_gitlab_ak()
{
git config --replace user.name Arne\ Keller
git config user.email arne.keller01@yahoo.de
git config commit.gpgsign false
}
function git_gitlab_sakuhl()
{
git config --replace user.name Sakuhl
git config user.email 2012collector@gmail.com
git config commit.gpgsign false
}
function git_wollwerk()
{
git config --replace user.name Arne\ Keller
git config user.email arne.keller01@yahoo.de
git config commit.gpgsign false
}