dotfiles/.zshrc
2019-03-31 21:55:42 +02:00

71 lines
2.0 KiB
Bash

export LANG=en_US.utf8
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=$HOME/.local/bin:$HOME/.cargo/bin:$PATH
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"
# 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'
. .local/bin/z.sh
source $HOME/.profilerc
bindkey "^[[1;5D" backward-word
bindkey "^[[1;5C" forward-word
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
}
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
}