update zsh config

parent 2830cc69
# If a new command line being added to the history list duplicates an older one, the older command
# is removed from the list
setopt histignorealldups
#
# also see .oh-my-zsh/lib/history.zsh
#
# remove command lines from the history list when the first character on the line is a space
setopt histignorespace
HISTSIZE=500000
SAVEHIST=100000
# avoid "beep"ing
setopt nobeep
# Typically, compinit will not automatically find new executables in the $PATH. For example, after
# you install a new package, the files in /usr/bin would not be immediately or automatically
# included in the completion. Thus, to have these new exectuables included, one would run "rehash".
# This rehash can be set to happen automatically.
setopt nohashdirs
setopt nohashcmds
#unsetopt extended_history # record timestamp of command in HISTFILE
#unsetopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
#unsetopt hist_ignore_dups # ignore duplicated commands history list
#unsetopt hist_verify # show command with history expansion to user before running it
#unsetopt inc_append_history # add commands to HISTFILE in order of execution
#unsetopt share_history # share command history data
#setopt append_history # append history
#setopt hist_ignore_space # ignore commands that start with space
#setopt hist_ignore_all_dups # ignore duplicates in history
#setopt hist_no_functions # do not save functions in history
setopt hist_no_store # do not save history command in history
# Restore default shell behavior
bindkey '^[l' down-case-word
bindkey '^U' backward-kill-line
# Set display
export DISPLAY=":0.0"
#export DISPLAY=":0.0"
# FZF colors
export FZF_DEFAULT_OPTS="--color dark,hl:33,hl+:37,fg+:235,bg+:136,fg+:254"
......@@ -8,14 +8,14 @@ export FZF_DEFAULT_OPTS="--color dark,hl:33,hl+:37,fg+:235,bg+:136,fg+:254"
#export TZ="Europe/Warsaw"
# Find alternative apps if it is installed on your system
find_alt() { for i;do which "$i" >/dev/null && { echo "$i"; return 0;};done;return 1; }
#find_alt() { for i;do which "$i" >/dev/null && { echo "$i"; return 0;};done;return 1; }
# Use the first program that it detects in the array as the default app
export OPENER=$(find_alt xdg-open exo-open gnome-open )
export BROWSER=$(find_alt firefox chromium chromium-browser google-chrome $OPENER )
export EDITOR=$(find_alt vim emacs nano leafpad gedit pluma $OPENER )
export FILEMANAGER=$(find_alt spacefm pcmanfm thunar nautilus dolphin enlightenment_filemanager $OPENER )
export PAGER=$(find_alt less more most)
#export OPENER=$(find_alt xdg-open exo-open gnome-open )
#export BROWSER=$(find_alt firefox chromium chromium-browser google-chrome $OPENER )
#export EDITOR=$(find_alt vim emacs nano leafpad gedit pluma $OPENER )
#export FILEMANAGER=$(find_alt spacefm pcmanfm thunar nautilus dolphin enlightenment_filemanager $OPENER )
#export PAGER=$(find_alt less more most)
export PATH_SCREENCAST="/home/morfik/Desktop/"
export PATH_SCREENSHOT="/home/morfik/skriny"
......@@ -44,8 +44,8 @@ export DEBFULLNAME="Mikhail Morfikov"
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;31m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin standout-mode - info box
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[01;32m' # begin underline
......@@ -99,3 +99,36 @@ export GREP_COLOR='1;32'
#
#GPG_TTY=$(tty)
#export GPG_TTY
# Install Ruby Gems to ~/gems
#export GEM_HOME=$HOME/gems
#export PATH=$HOME/gems/bin:$PATH
TTY=$(tty)
if [[ $TTY == *"/dev/tty"* ]]; then
export TMOUT="$(( 60*10 ))";
fi
if [ -d "/media/ccache/cache-morfik" ] ; then
export USE_CCACHE="1"
export CCACHE_DIR="/media/ccache/cache-morfik"
#export CCACHE_DIR="/tmp-ram/cache-morfik"
#export ARCH="x86_64"
fi
export QT_QPA_PLATFORMTHEME="qt5ct"
# Stops Qt form using the MIT-SHM X11 extension. The MIT Shared Memory Extension or MIT-SHM is a
# X Window System extension for exchange of image data between client and server using shared
# memory. Use this in case where "kernel.shm*" sysctl options don't work.
#export QT_X11_NO_MITSHM=1
# Disable scrol overlay
export GTK_OVERLAY_SCROLLING=0
export EDITOR=/usr/bin/vim
# Can be one of: dconf, memory, file,
#export GSETTINGS_BACKEND=memory
......@@ -103,8 +103,8 @@ reload-conky() {
}
reload-tint2() {
killall -9 tint2 && sleep 1
tint2 -c /home/morfik/.config/tint2/tint2rc_up > /dev/null 2>&1 & ; disown
tint2 -c /home/morfik/.config/tint2/tint2rc_down > /dev/null 2>&1 & ; disown
LC_TIME=pt_BR.utf8 tint2 -c ~/.config/tint2/tint2rc_up > /dev/null 2>&1 & ; disown
tint2 -c ~/.config/tint2/tint2rc_down > /dev/null 2>&1 & ; disown
}
#}}}
......@@ -140,7 +140,7 @@ alias dmesg='dmesg -T'
#alias rm='rm -i' # rm interactive
alias df='df -hT' # human readable, print filetype
alias dfc='dfc -Ti -u m' # filetype, inode information, unit in MiB
alias du='du -d1 -h' # max depth, human readable
#alias du='du -d1 -h' # max depth, human readable
alias free='free -ht' # human readable, print total
alias lsblk='lsblk -o "NAME,SIZE,FSTYPE,TYPE,LABEL,MOUNTPOINT,UUID"' # combo use lsblk or lsblk -f
alias mkdir='mkdir -p -v' # create if not exist, verbose
......@@ -319,7 +319,6 @@ ps_user_tree() { ps [email protected] -u $USER -o pid,%cpu,%mem,user,group,bsdtime,command f |
# get the creation time of a file
get_crtime() {
for target in "${@}"; do
inode=$(stat -c %i "${target}")
fs=$(df --output=source "${target}" | tail -1)
......@@ -328,3 +327,6 @@ get_crtime() {
printf "%s\t%s\n" "${target}" "${crtime}"
done
}
#alias meld="GSETTINGS_BACKEND=dconf meld"
# Add yourself some shortcuts to projects you often work on
# Example:
# You can put files here to add functionality separated per file, which
# will be ignored by git.
# Files on the custom/ directory will be automatically loaded by the init
# script, in alphabetical order.
# For example: add yourself some shortcuts to projects you often work on.
#
# brainstormr=~/Projects/development/planetargon/brainstormr
# cd $brainstormr
#
# brainstormr=/Users/robbyrussell/Projects/development/planetargon/brainstormr
#
\ No newline at end of file
# Put your custom themes in this folder.
# Example:
PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "
......@@ -34,4 +34,8 @@ PROMPT=$'%{\e[0;34m%}╭─[%{\e[1;32m%}%n%{\e[0;36m%}@%{\e[1;36m%}%m%{\e[0;34m%
%{\e[0;34m%}╰─[%{\e[1;35m%}%?$(retcode)%{\e[0;34m%}]%{\e[0;31m%} <%{\e[0;36m%} $(mygit)$(hg_prompt_info)%{\e[0;31m%}>%{\e[0;36m%} %{\e[1;32m%}\$%{\e[0m%} '
PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
# An empty line after each command and set cursor to blink
precmd() { print "" }
# Make cursor blink
#precmd() { print "\e[3 q" }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment