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
|
|
|
|
zstyle :compinstall filename '/home/g1smo/.zshrc'
|
|
|
|
|
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
|
|
|
|
|
|
|
export EDITOR="vim"
|
|
|
|
export VISUAL="vim"
|
|
|
|
|
|
|
|
# Color
|
|
|
|
autoload colors zsh/terminfo
|
|
|
|
colors
|
|
|
|
# PATH additions
|
|
|
|
export GOPATH=~/Sredstva/go
|
2020-08-04 17:07:00 +02:00
|
|
|
export PATH="/home/g1smo/bin:/home/g1smo/.cargo/bin:$GOPATH/bin:$PATH"
|
2016-12-17 01:22:06 +01:00
|
|
|
|
|
|
|
# Default term (i3)
|
2020-08-04 17:07:00 +02:00
|
|
|
#export TERMINAL="termite"
|
|
|
|
export TERMINAL="kitty"
|
2018-03-23 05:03:47 +01:00
|
|
|
export TERM="xterm-256color"
|
2016-12-17 01:22:06 +01:00
|
|
|
|
|
|
|
# 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 sudo="sudo "
|
|
|
|
alias grep="grep --color=auto"
|
2018-02-01 01:19:49 +01:00
|
|
|
# Remove not-required-anymore packages
|
2016-12-17 01:22:06 +01:00
|
|
|
alias paclean="sudo pacman -R \$(pacman -Qdt | awk '{print \$1}')"
|
2018-02-01 01:19:49 +01:00
|
|
|
# List packages by size
|
|
|
|
alias pacsize="expac -H M '%m\t%n' | sort -h"
|
2016-12-17 01:22:06 +01:00
|
|
|
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"
|
2018-03-23 05:12:23 +01:00
|
|
|
alias sctl="systemctl"
|
2016-12-17 01:41:34 +01:00
|
|
|
|
|
|
|
# Firefox scaling!
|
|
|
|
alias sf="find ~/.mozilla/firefox -name \"prefs.js\" -exec sed -ri 's/(devPixelsPerPx\\\", \\\")[0-9\\.]+/\\11\.00/' {} + ; firefox"
|
2018-01-12 18:00:25 +01:00
|
|
|
# regular firefox
|
2016-12-17 01:41:34 +01:00
|
|
|
alias ff="find ~/.mozilla/firefox -name \"prefs.js\" -exec sed -ri 's/(devPixelsPerPx\\\", \\\")[0-9\\.]+/\\11\.75/' {} + ; firefox"
|
|
|
|
|
2016-12-17 01:22:06 +01:00
|
|
|
# Reverse search shortcut
|
|
|
|
bindkey '^R' history-incremental-pattern-search-backward
|
|
|
|
|
|
|
|
export SCALA_HOME="/usr/share/scala"
|
|
|
|
export SAL_USE_VCLPLUGIN="gtk"
|
|
|
|
|
|
|
|
# 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"
|
2019-02-06 19:45:43 +01:00
|
|
|
alias offer-files="python3 -m http.server"
|
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"
|
|
|
|
|
2018-09-23 16:22:22 +02:00
|
|
|
# Najvecji fajli
|
|
|
|
alias najvecji="find . -printf '%s %p\n'| sort -nr | head -30"
|
|
|
|
|
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
|
|
|
|
2018-02-15 11:30:26 +01:00
|
|
|
# Guile things
|
2017-07-22 03:36:01 +02:00
|
|
|
export GUILE_WARN_DEPRECATED="detailed"
|
2018-03-01 00:19:05 +01:00
|
|
|
|
2019-02-06 19:45:43 +01:00
|
|
|
# Guix guile things
|
2020-08-04 17:07:00 +02:00
|
|
|
#export GUILE_LOAD_PATH=$HOME/.guix-profile/share/guile/site/2.2:$GUILE_LOAD_PATH
|
|
|
|
#export GUILE_LOAD_COMPILED_PATH=$HOME/.guix-profile/lib/guile/2.2/site-ccache:$GUILE_LOAD_COMPILED_PATH
|
2018-02-15 11:30:26 +01:00
|
|
|
|
2017-07-22 03:07:05 +02:00
|
|
|
# Java fix?
|
|
|
|
export NLS_LANG=American_America.UTF8
|
|
|
|
|
|
|
|
# emacspeak speech server
|
|
|
|
export DTK_PROGRAM=espeak
|
2018-01-07 02:16:40 +01:00
|
|
|
|
|
|
|
# Android SDK && React Native build settings
|
|
|
|
export ANDROID_HOME=/home/g1smo/Android/Sdk
|
|
|
|
export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
|
|
|
|
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
|
|
|
|
|
2019-02-06 19:45:43 +01:00
|
|
|
# Chrome scaling
|
2020-08-03 12:38:46 +02:00
|
|
|
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS \
|
|
|
|
--disable-low-res-tiling
|
|
|
|
--num-raster-threads=6 \
|
|
|
|
--profiler-timing=0 \
|
|
|
|
--disable-composited-antialiasing \
|
|
|
|
--test-type \
|
|
|
|
--show-component-extension-options \
|
|
|
|
--ignore-gpu-blacklist \
|
|
|
|
--use-gl=egl \
|
|
|
|
--ppapi-flash-path=/usr/lib/chromium-browser/pepper/libpepflashplayer.so \
|
|
|
|
--ppapi-flash-version=32.0.0.255 \
|
|
|
|
--enable-pinch \
|
|
|
|
--flag-switches-begin \
|
|
|
|
--enable-gpu-rasterization \
|
|
|
|
--enable-oop-rasterization \
|
|
|
|
--flag-switches-end"
|
2019-02-06 19:45:43 +01:00
|
|
|
|
2018-07-22 04:16:26 +02:00
|
|
|
# Guix!
|
2020-08-04 17:07:00 +02:00
|
|
|
#export GUIX_PROFILE="$HOME/.guix-profile"
|
2019-02-06 19:45:43 +01:00
|
|
|
#export GUIX_PROFILE="$HOME/.config/guix/current"
|
2020-08-04 17:07:00 +02:00
|
|
|
#export GUIX_PROFILE_FILE="$GUIX_PROFILE/etc/profile"
|
|
|
|
#[ -e $GUIX_PROFILE_FILE ] && source $GUIX_PROFILE_FILE
|
|
|
|
#export GUIX_PACKAGE_PATH="$HOME/Projects/guix-packages"
|
|
|
|
#export GUIX_LOCPATH="$GUIX_PROFILE/lib/locale"
|
2019-02-06 19:45:43 +01:00
|
|
|
#export PATH="/home/g1smo/.config/guix/current/bin${PATH:+:}$PATH"
|
2020-08-04 17:07:00 +02:00
|
|
|
#export PATH="/home/g1smo/.guix-profile/bin${PATH:+:}$PATH"
|
2018-11-02 01:05:13 +01:00
|
|
|
#export SSL_CERT_DIR="$GUIX_PROFILE/etc/ssl/certs"
|
|
|
|
#export SSL_CERT_FILE="$SSL_CERT_DIR/ca-certificates.crt"
|
2018-07-22 04:16:26 +02:00
|
|
|
#export GIT_SSL_CAINFO="$SSL_CERT_FILE"
|
2018-11-02 01:05:13 +01:00
|
|
|
#export CURL_CA_BUNDLE="$SSL_CERT_FILE"
|
2020-08-03 12:38:46 +02:00
|
|
|
|
|
|
|
# Mozilla webrender
|
|
|
|
export MOZ_WEBRENDER=0
|
|
|
|
# Wayland native firefox
|
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
2020-08-04 17:07:00 +02:00
|
|
|
|
|
|
|
# Layout tipkovnice
|
|
|
|
export XKB_DEFAULT_LAYOUT=us,si
|
|
|
|
export XKB_DEFAULT_OPTIONS=grp:win_space_toggle,compose:caps
|
|
|
|
|
|
|
|
# Novejsi opengl
|
|
|
|
export PAN_MESA_DEBUG=gl3
|
|
|
|
|
|
|
|
export GDK_BACKEND=wayland
|
|
|
|
|
|
|
|
export QT_QPA_PLATFORM=wayland
|
|
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|