dotfiles/.zshrc
2017-04-22 16:53:37 +03:00

61 lines
1.8 KiB
Bash

# The following lines were added by compinstall
zstyle :compinstall filename '/home/lanxu/.zshrc'
autoload -U compinit promptinit colors
compinit
promptinit
colors
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt notify
# Ignore lines prefixed with '#'.
setopt interactivecomments
# Ignore duplicate in history.
setopt hist_ignore_dups
# Prevent record in history entry if preceding them with at least one space
setopt hist_ignore_space
# This will set the default prompt to the walters theme
#prompt grml
# You may need to manually set your language environment
export LANG=fi_FI.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='vim'
fi
# Syntax highlighting
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
alias top=htop
alias ll="ls -lh"
alias la="ls -a"
#alias ls="ls -N --time-style=long-iso --color=auto"
alias ls="ls --time-style=long-iso --color=auto"
alias rhc='RUBYOPT="-W0" rhc'
# Other
alias fixsteam='find ~/.steam/root/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" \) -print -delete'
alias runsteam="LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' /usr/bin/steam"
alias steamgamesdir='cd ~/.local/share/Steam/SteamApps/common'
# https://github.com/chriskempson/base16-shell
# git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell
source $HOME/.config/base16-shell/scripts/base16-default-dark.sh
# Emscripten
#source /home/lanxu/Koodit/github/emsdk/emsdk_env.sh
#TERM=xterm-256color
bindkey "${terminfo[khome]}" beginning-of-line
bindkey "${terminfo[kend]}" end-of-line