2016-12-17 01:22:06 +01:00
|
|
|
# Lines configured by zsh-newuser-install
|
|
|
|
HISTFILE=~/.histfile
|
|
|
|
HISTSIZE=1000
|
|
|
|
SAVEHIST=10000
|
|
|
|
bindkey -v
|
|
|
|
export KEYTIMEOUT=1
|
|
|
|
# End of lines configured by zsh-newuser-install
|
|
|
|
# The following lines were added by compinstall
|
|
|
|
zstyle :compinstall filename '/home/g1smo/.zshrc'
|
|
|
|
|
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
|
|
|
# End of lines added by compinstall
|
|
|
|
|
|
|
|
# The following lines were added by compinstall
|
|
|
|
zstyle :compinstall filename '/home/g1smo/.zshrc'
|
|
|
|
|
|
|
|
export EDITOR="vim"
|
|
|
|
export VISUAL="vim"
|
|
|
|
|
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
|
|
|
# End of lines added by compinstall
|
|
|
|
|
|
|
|
# Color
|
|
|
|
autoload colors zsh/terminfo
|
|
|
|
colors
|
|
|
|
# PATH additions
|
|
|
|
export GOPATH=~/Sredstva/go
|
2017-07-22 03:07:05 +02:00
|
|
|
export PATH="/home/g1smo/bin:$PATH:/home/g1smo/.gem/ruby/2.4.0/bin:$GOPATH/bin"
|
2016-12-17 01:22:06 +01:00
|
|
|
|
|
|
|
# Default term (i3)
|
|
|
|
export TERMINAL="gnome-terminal"
|
|
|
|
|
|
|
|
# Prompt
|
|
|
|
autoload -U promptinit
|
|
|
|
promptinit
|
|
|
|
autoload -Uz vcs_info
|
|
|
|
|
|
|
|
zstyle ':vcs_info:*' check-for-changes true
|
|
|
|
zstyle ':vcs_info:*' enable git svn hg
|
|
|
|
zstyle ':vcs_info:*' formats '(%b) '
|
|
|
|
precmd () {
|
|
|
|
vcs_info
|
|
|
|
}
|
|
|
|
|
|
|
|
setopt prompt_subst
|
|
|
|
PROMPT='%n@%m %1~ %{$fg[green]%}${vcs_info_msg_0_}%{$fg[blue]%}» %{$reset_color%}'
|
|
|
|
|
|
|
|
# Aliases
|
|
|
|
alias ls='ls --color=auto'
|
|
|
|
#alias vim='TERM=xterm-256color vim'
|
|
|
|
alias vi='vim'
|
|
|
|
alias apachelog="gnome-terminal -e \"tail -f /var/log/httpd/error_log\""
|
|
|
|
alias nvidiaoff="sudo modprobe -r nvidia_drm nvidia_modeset nvidia-uvm nvidia; sudo tee /proc/acpi/bbswitch <<<OFF"
|
2016-12-17 01:41:34 +01:00
|
|
|
#alias nvidiaoff="sudo tee /sys/kernel/debug/vgaswitcheroo/switch <<<OFF"
|
2016-12-17 01:22:06 +01:00
|
|
|
alias sudo="sudo "
|
|
|
|
alias grep="grep --color=auto"
|
|
|
|
alias paclean="sudo pacman -R \$(pacman -Qdt | awk '{print \$1}')"
|
|
|
|
alias ffon="sudo cp /etc/resolv.conf.ff /etc/resolv.conf"
|
|
|
|
alias gitclean="git fetch -p && for branch in \$(git branch -vv | grep ': gone]' | gawk '{print \$1}'); do git branch -D \$branch; echo 'deleted \$branch'; done"
|
2016-12-17 01:41:34 +01:00
|
|
|
|
|
|
|
# Firefox scaling!
|
|
|
|
# regular firefox
|
|
|
|
alias sf="find ~/.mozilla/firefox -name \"prefs.js\" -exec sed -ri 's/(devPixelsPerPx\\\", \\\")[0-9\\.]+/\\11\.00/' {} + ; firefox"
|
|
|
|
alias ff="find ~/.mozilla/firefox -name \"prefs.js\" -exec sed -ri 's/(devPixelsPerPx\\\", \\\")[0-9\\.]+/\\11\.75/' {} + ; firefox"
|
|
|
|
|
|
|
|
# Wandera env
|
2017-10-13 03:37:11 +02:00
|
|
|
alias wdev="cp /home/g1smo/Projects/w_params_dev.yml /srv/http/portal/app/config/environment.yml"
|
|
|
|
alias wqa="cp /home/g1smo/Projects/w_params_qa.yml /srv/http/portal/app/config/environment.yml"
|
|
|
|
alias wfeat="cp /home/g1smo/Projects/w_params_feat.yml /srv/http/portal/app/config/environment.yml"
|
2016-12-17 01:22:06 +01:00
|
|
|
|
|
|
|
# Reverse search shortcut
|
|
|
|
bindkey '^R' history-incremental-pattern-search-backward
|
|
|
|
|
|
|
|
# Skype fix
|
|
|
|
# export PULSE_LATENCY_MSEC=60
|
|
|
|
|
|
|
|
# Xdebug
|
|
|
|
export XDEBUG_CONFIG="idekey=xdebug remote_host=localhost remote_enable=1 remote_handler=dbgp remote_host=localhost remote_port=9001"
|
|
|
|
export SCALA_HOME="/usr/share/scala"
|
|
|
|
export SAL_USE_VCLPLUGIN="gtk"
|
|
|
|
export PHP_INI_SCAN_DIR="/etc/php56/conf.d/"
|
|
|
|
|
|
|
|
# NVM
|
2017-07-22 03:07:05 +02:00
|
|
|
#export NVM_DIR="/home/g1smo/.nvm"
|
|
|
|
#[ -e /usr/share/nvm/init-nvm.sh ] && . /usr/share/nvm/init-nvm.sh
|
|
|
|
alias invm=". /usr/share/nvm/init-nvm.sh"
|
2016-12-17 01:22:06 +01:00
|
|
|
alias sc="chromium --force-device-scale-factor=1"
|
2017-05-03 03:54:47 +02:00
|
|
|
alias emacs-live="HOME=~/Sredstva/emacs-live emacs"
|
|
|
|
alias offer-files="sudo python3 -m http.server 811"
|
2017-07-22 03:07:05 +02:00
|
|
|
# X on wayland
|
|
|
|
alias wxon="xhost +local:"
|
2017-05-03 03:54:47 +02:00
|
|
|
|
|
|
|
# RŠ aliasi
|
|
|
|
alias omnom="ssh root@debeli"
|
2016-12-17 01:22:06 +01:00
|
|
|
|
2017-10-13 03:37:11 +02:00
|
|
|
# Dolzina mp3 fajlov
|
|
|
|
alias mp3len="for i in \$(ls *.mp3); do echo \$i; soxi -d \$i; done"
|
|
|
|
|
|
|
|
# Hiter ping za net preverit
|
|
|
|
alias pg="ping 8.8.8.8"
|
|
|
|
|
2016-12-17 01:22:06 +01:00
|
|
|
# GTK interface scale
|
2017-01-05 18:28:13 +01:00
|
|
|
#export GDK_SCALE=1
|
|
|
|
export GDK_DPI_SCALE=1
|
2017-07-22 03:07:05 +02:00
|
|
|
export GDK_SCALE=1
|
2016-12-17 01:22:06 +01:00
|
|
|
|
2016-12-25 13:47:45 +01:00
|
|
|
# PhantomJS binary location
|
|
|
|
export PHANTOMJS_BIN=/usr/bin/phantomjs
|
2017-05-03 03:54:47 +02:00
|
|
|
|
2017-07-22 03:36:01 +02:00
|
|
|
# Guile deprecated warnings
|
|
|
|
export GUILE_WARN_DEPRECATED="detailed"
|
|
|
|
|
2017-05-03 03:54:47 +02:00
|
|
|
# RBEnv
|
2017-07-22 03:36:01 +02:00
|
|
|
command -v rbenv && eval "$(rbenv init -)"
|
2017-07-22 03:07:05 +02:00
|
|
|
|
|
|
|
# Java fix?
|
|
|
|
export NLS_LANG=American_America.UTF8
|
|
|
|
|
|
|
|
# emacspeak speech server
|
|
|
|
export DTK_PROGRAM=espeak
|