overdue commit
This commit is contained in:
@@ -0,0 +1,243 @@
|
||||
uRxvt.perl-ext-common: default,tabbed,matcher,resize-font,-tabbed
|
||||
URxvt.keysym.C-minus: resize-font:smaller
|
||||
URxvt.keysym.C-plus: resize-font:bigger
|
||||
URxvt.keysym.C-equal: resize-font:reset
|
||||
URxvt.keysym.C-question: resize-font:show
|
||||
|
||||
|
||||
Xft.dpi: 96
|
||||
Xft.antialias: true
|
||||
Xft.hinting: true
|
||||
Xft.rgba: rgb
|
||||
Xft.autohint: false
|
||||
Xft.hintstyle: hintslight
|
||||
Xft.lcdfilter: lcddefault
|
||||
|
||||
XTerm*background: #222D31
|
||||
XTerm*foreground: #d8d8d8
|
||||
XTerm*pointerColor: #1ABB9B
|
||||
XTerm*faceName: Fixed
|
||||
XTerm*faceSize: 11
|
||||
XTerm*reverseVideo: on
|
||||
XTerm*selectToClipboard: true
|
||||
|
||||
*background: #222D31
|
||||
*foreground: #d8d8d8
|
||||
*fading: 8
|
||||
*fadeColor: black
|
||||
*cursorColor: #1ABB9B
|
||||
*pointerColorBackground: #2B2C2B
|
||||
*pointerColorForeground: #16A085
|
||||
|
||||
!! black dark/light
|
||||
*color0: #222D31
|
||||
*color8: #585858
|
||||
|
||||
!! red dark/light
|
||||
*color1: #ab4642
|
||||
*color9: #ab4642
|
||||
|
||||
!! green dark/light
|
||||
*color2: #7E807E
|
||||
*color10: #8D8F8D
|
||||
|
||||
!! yellow dark/light
|
||||
*color3: #f7ca88
|
||||
*color11: #f7ca88
|
||||
|
||||
!! blue dark/light
|
||||
*color4: #7cafc2
|
||||
*color12: #7cafc2
|
||||
|
||||
!! magenta dark/light
|
||||
*color5: #ba8baf
|
||||
*color13: #ba8baf
|
||||
|
||||
!! cyan dark/light
|
||||
*color6: #1ABB9B
|
||||
*color14: #1ABB9B
|
||||
|
||||
!! white dark/light
|
||||
*color7: #d8d8d8
|
||||
*color15: #f8f8f8
|
||||
|
||||
Xcursor.theme: Maia-Cursor
|
||||
Xcursor.size: 0
|
||||
|
||||
URxvt.font: xft:SauceCodePro Nerd Font:size=12
|
||||
|
||||
! alternative font settings with 'terminus':
|
||||
! URxvt.font: -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1
|
||||
! URxvt.bold.font: -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso10646-1
|
||||
!! terminus names see end of file!
|
||||
|
||||
URxvt.depth: 32
|
||||
URxvt.background: [100]#222D31
|
||||
URxvt*scrollBar: true
|
||||
URxvt*mouseWheelScrollPage: false
|
||||
URxvt*cursorBlink: true
|
||||
URxvt*background: black
|
||||
URxvt*foreground: grey
|
||||
URxvt*saveLines: 5000
|
||||
|
||||
! for 'fake' transparency (without Compton) uncomment the following three lines
|
||||
! URxvt*inheritPixmap: true
|
||||
! URxvt*transparent: true
|
||||
! URxvt*shading: 138
|
||||
|
||||
! Normal copy-paste keybindings without perls
|
||||
URxvt.iso14755: false
|
||||
URxvt.keysym.Shift-Control-V: eval:paste_clipboard
|
||||
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
|
||||
!Xterm escape codes, word by word movement
|
||||
URxvt.keysym.Control-Left: \033[1;5D
|
||||
URxvt.keysym.Shift-Control-Left: \033[1;6D
|
||||
URxvt.keysym.Control-Right: \033[1;5C
|
||||
URxvt.keysym.Shift-Control-Right: \033[1;6C
|
||||
URxvt.keysym.Control-Up: \033[1;5A
|
||||
URxvt.keysym.Shift-Control-Up: \033[1;6A
|
||||
URxvt.keysym.Control-Down: \033[1;5B
|
||||
URxvt.keysym.Shift-Control-Down: \033[1;6B
|
||||
! Rxvt.perl-ext-common: ...,clipboard
|
||||
! URxvt.keysym.M-C-c: perl:clipboard:copy
|
||||
! URxvt.keysym.M-v: perl:clipboard:paste
|
||||
! URxvt.keysym.M-C-v: perl:clipboard:paste_escaped
|
||||
! URxvt*termName: string
|
||||
! URxvt*geometry: geometry
|
||||
! URxvt*chdir: string
|
||||
! URxvt*loginShell: boolean
|
||||
! URxvt*multiClickTime: number
|
||||
! URxvt*jumpScroll: boolean
|
||||
! URxvt*skipScroll: boolean
|
||||
! URxvt*pastableTabs: boolean
|
||||
! URxvt*scrollstyle: plain
|
||||
! URxvt*scrollBar_right: boolean
|
||||
! URxvt*scrollBar_floating: true
|
||||
! URxvt*scrollBar_align: mode
|
||||
! URxvt*thickness: number
|
||||
! URxvt*scrollTtyOutput: boolean
|
||||
! URxvt*scrollTtyKeypress: boolean
|
||||
! URxvt*scrollWithBuffer: boolean
|
||||
! URxvt*tintColor: !7DA55
|
||||
! URxvt*blurRadius: HxV
|
||||
! URxvt*fading: number
|
||||
! URxvt*fadeColor: color
|
||||
! URxvt*utmpInhibit: boolean
|
||||
! URxvt*urgentOnBell: boolean
|
||||
! URxvt*visualBell: boolean
|
||||
! URxvt*mapAlert: boolean
|
||||
! URxvt*meta8: boolean
|
||||
! URxvt*tripleclickwords: boolean
|
||||
! URxvt*insecure: boolean
|
||||
! URxvt*cursorUnderline: boolean
|
||||
! URxvt*pointerBlank: boolean
|
||||
! URxvt*color0: color
|
||||
! URxvt*color1: color
|
||||
! URxvt*color2: color
|
||||
! URxvt*color3: color
|
||||
! URxvt*color4: color
|
||||
! URxvt*color5: color
|
||||
! URxvt*color6: color
|
||||
! URxvt*color7: color
|
||||
! URxvt*color8: color
|
||||
! URxvt*color9: color
|
||||
! URxvt*color10: color
|
||||
! URxvt*color11: color
|
||||
! URxvt*color12: color
|
||||
! URxvt*color13: color
|
||||
! URxvt*color14: color
|
||||
! URxvt*color15: color
|
||||
! URxvt*colorBD: color
|
||||
! URxvt*colorIT: color
|
||||
! URxvt*colorUL: color
|
||||
! URxvt*colorRV: color
|
||||
! URxvt*underlineColor: color
|
||||
! URxvt*scrollColor: color
|
||||
! URxvt*troughColor: color
|
||||
! URxvt*highlightColor: color
|
||||
! URxvt*highlightTextColor: color
|
||||
! URxvt*cursorColor: color
|
||||
! URxvt*cursorColor2: color
|
||||
! URxvt*pointerColor: color
|
||||
! URxvt*pointerColor2: color
|
||||
! URxvt*borderColor: color
|
||||
! URxvt*iconFile: file
|
||||
! URxvt*font: fontname
|
||||
! URxvt*boldFont: fontname
|
||||
! URxvt*italicFont: fontname
|
||||
! URxvt*boldItalicFont: fontname
|
||||
! URxvt*intensityStyles: boolean
|
||||
! URxvt*inputMethod: name
|
||||
! URxvt*preeditType: style
|
||||
! URxvt*imLocale: string
|
||||
! URxvt*imFont: fontname
|
||||
! URxvt*title: string
|
||||
! URxvt*iconName: string
|
||||
! URxvt*buffered: boolean
|
||||
! URxvt*depth: number
|
||||
! URxvt*visual: number
|
||||
! URxvt*transient-for: windowid
|
||||
! URxvt*override-redirect: boolean
|
||||
! URxvt*hold: boolean
|
||||
! URxvt*externalBorder: number
|
||||
! URxvt*internalBorder: number
|
||||
! URxvt*borderLess: true
|
||||
! URxvt*lineSpace: number
|
||||
! URxvt*letterSpace: number
|
||||
! URxvt*skipBuiltinGlyphs: boolean
|
||||
! URxvt*pointerBlankDelay: number
|
||||
! URxvt*backspacekey: string
|
||||
! URxvt*deletekey: string
|
||||
! URxvt*print-pipe: string
|
||||
! URxvt*modifier: modifier
|
||||
! URxvt*cutchars: string
|
||||
! URxvt*answerbackString: string
|
||||
! URxvt*secondaryScreen: boolean
|
||||
! URxvt*secondaryScroll: boolean
|
||||
! URxvt*perl-lib: string
|
||||
! URxvt*perl-eval: perl-eval
|
||||
! URxvt*perl-ext-common: string
|
||||
! URxvt*perl-ext: string
|
||||
! URxvt*iso14755: boolean
|
||||
! URxvt*iso14755_52: boolean
|
||||
! URxvt*xrm: string
|
||||
! URxvt*keysym.sym: keysym
|
||||
! URxvt*background.border: boolean
|
||||
! URxvt*background.expr: string
|
||||
! URxvt*background.interval: seconds
|
||||
! URxvt*bell-command: string
|
||||
! URxvt*kuake.hotkey: string
|
||||
! URxvt*matcher.button: string
|
||||
! URxvt*matcher.launcher: string
|
||||
! URxvt*matcher.launcher.*: string
|
||||
! URxvt*matcher.pattern.*: string
|
||||
! URxvt*matcher.rend.*: string
|
||||
! URxvt*remote-clipboard.fetch: string
|
||||
! URxvt*remote-clipboard.store: string
|
||||
! URxvt*searchable-scrollback: string
|
||||
! URxvt*selection-autotransform.*: string
|
||||
! URxvt*selection-pastebin.cmd: string
|
||||
! URxvt*selection-pastebin.url: string
|
||||
! URxvt*selection.pattern-0: string
|
||||
! URxvt*tab-bg: colour
|
||||
! URxvt*tab-fg: colour
|
||||
! URxvt*tabbar-bg: colour
|
||||
! URxvt*tabbar-fg: colour
|
||||
! URxvt*url-launcher: string
|
||||
|
||||
! The Terminus font uses the following X-names:
|
||||
! -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
|
||||
! -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
|
||||
! -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1
|
||||
! -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso10646-1
|
||||
! -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso10646-1
|
||||
! -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1
|
||||
! -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso10646-1
|
||||
! -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso10646-1
|
||||
! -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso10646-1
|
||||
! -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso10646-1
|
||||
! -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso10646-1
|
||||
! -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso10646-1
|
||||
! -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso10646-1
|
||||
! -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso10646-1
|
||||
! -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso10646-1
|
||||
-149
@@ -1,149 +0,0 @@
|
||||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
colors() {
|
||||
local fgc bgc vals seq0
|
||||
|
||||
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
|
||||
printf "Values 30..37 are \e[33mforeground colors\e[m\n"
|
||||
printf "Values 40..47 are \e[43mbackground colors\e[m\n"
|
||||
printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n"
|
||||
|
||||
# foreground colors
|
||||
for fgc in {30..37}; do
|
||||
# background colors
|
||||
for bgc in {40..47}; do
|
||||
fgc=${fgc#37} # white
|
||||
bgc=${bgc#40} # black
|
||||
|
||||
vals="${fgc:+$fgc;}${bgc}"
|
||||
vals=${vals%%;}
|
||||
|
||||
seq0="${vals:+\e[${vals}m}"
|
||||
printf " %-9s" "${seq0:-(default)}"
|
||||
printf " ${seq0}TEXT\e[m"
|
||||
printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m"
|
||||
done
|
||||
echo; echo
|
||||
done
|
||||
}
|
||||
|
||||
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
|
||||
|
||||
# Change the window title of X terminals
|
||||
case ${TERM} in
|
||||
xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
|
||||
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
|
||||
;;
|
||||
screen*)
|
||||
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"'
|
||||
;;
|
||||
esac
|
||||
|
||||
use_color=true
|
||||
|
||||
# Set colorful PS1 only on colorful terminals.
|
||||
# dircolors --print-database uses its own built-in database
|
||||
# instead of using /etc/DIR_COLORS. Try to use the external file
|
||||
# first to take advantage of user additions. Use internal bash
|
||||
# globbing instead of external grep binary.
|
||||
safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM
|
||||
match_lhs=""
|
||||
[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
|
||||
[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
|
||||
[[ -z ${match_lhs} ]] \
|
||||
&& type -P dircolors >/dev/null \
|
||||
&& match_lhs=$(dircolors --print-database)
|
||||
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
|
||||
|
||||
if ${use_color} ; then
|
||||
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
|
||||
if type -P dircolors >/dev/null ; then
|
||||
if [[ -f ~/.dir_colors ]] ; then
|
||||
eval $(dircolors -b ~/.dir_colors)
|
||||
elif [[ -f /etc/DIR_COLORS ]] ; then
|
||||
eval $(dircolors -b /etc/DIR_COLORS)
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
PS1='\[\033[01;31m\]\w\[\033[01;31m\] [\t] \$\[\033[00m\] '
|
||||
else
|
||||
PS1='\[\033[01;32m\]\w\[\033[01;32m\] [\t] \$\[\033[00m\] '
|
||||
fi
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --colour=auto'
|
||||
alias egrep='egrep --colour=auto'
|
||||
alias fgrep='fgrep --colour=auto'
|
||||
else
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
# show root@ when we don't have colors
|
||||
PS1='\u@\h \w [\t] \$ '
|
||||
else
|
||||
PS1='\u@\h \w [\t] \$ '
|
||||
fi
|
||||
fi
|
||||
|
||||
unset use_color safe_term match_lhs sh
|
||||
|
||||
alias cp="cp -i" # confirm before overwriting something
|
||||
alias df='df -h' # human-readable sizes
|
||||
alias free='free -m' # show sizes in MB
|
||||
alias np='nano -w PKGBUILD'
|
||||
alias more=less
|
||||
|
||||
xhost +local:root > /dev/null 2>&1
|
||||
|
||||
complete -cf sudo
|
||||
|
||||
# Bash won't get SIGWINCH if another process is in the foreground.
|
||||
# Enable checkwinsize so that bash will check the terminal size when
|
||||
# it regains control. #65623
|
||||
# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
|
||||
shopt -s checkwinsize
|
||||
|
||||
shopt -s expand_aliases
|
||||
|
||||
# export QT_SELECT=4
|
||||
|
||||
# Enable history appending instead of overwriting. #139609
|
||||
shopt -s histappend
|
||||
|
||||
#
|
||||
# # ex - archive extractor
|
||||
# # usage: ex <file>
|
||||
ex ()
|
||||
{
|
||||
if [ -f $1 ] ; then
|
||||
case $1 in
|
||||
*.tar.bz2) tar xjf $1 ;;
|
||||
*.tar.gz) tar xzf $1 ;;
|
||||
*.bz2) bunzip2 $1 ;;
|
||||
*.rar) unrar x $1 ;;
|
||||
*.gz) gunzip $1 ;;
|
||||
*.tar) tar xf $1 ;;
|
||||
*.tbz2) tar xjf $1 ;;
|
||||
*.tgz) tar xzf $1 ;;
|
||||
*.zip) unzip $1 ;;
|
||||
*.Z) uncompress $1;;
|
||||
*.7z) 7z x $1 ;;
|
||||
*) echo "'$1' cannot be extracted via ex()" ;;
|
||||
esac
|
||||
else
|
||||
echo "'$1' is not a valid file"
|
||||
fi
|
||||
}
|
||||
|
||||
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
||||
|
||||
# Base16 Shell
|
||||
BASE16_SHELL="$HOME/.config/base16-shell/"
|
||||
[ -n "$PS1" ] && \
|
||||
[ -s "$BASE16_SHELL/profile_helper.sh" ] && \
|
||||
eval "$("$BASE16_SHELL/profile_helper.sh")"
|
||||
|
||||
source /usr/share/nvm/init-vnm.sh
|
||||
@@ -1,20 +0,0 @@
|
||||
export VISUAL=/usr/bin/nvim
|
||||
export EDITOR=/usr/bin/nvim
|
||||
export BROWSER=/usr/bin/chromium
|
||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
||||
export PYTHONBREAKPOINT=ipdb.set_trace
|
||||
export JAVA_HOME="/usr/lib/jvm/java-14-openjdk/bin/javac"
|
||||
|
||||
|
||||
# cuda stuff
|
||||
export CUDA_HOME=/opt/cuda
|
||||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CUDA_HOME}/lib64
|
||||
PATH=${CUDA_HOME}/bin:/home/hjalmarlucius/.local/bin/:${PATH}
|
||||
export PATH
|
||||
|
||||
# MKL AMD fix
|
||||
export MKL_DEBUG_CPU_TYPE=5
|
||||
|
||||
export NVM_DIR="/home/hjalmarlucius/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
+12
-7
@@ -60,9 +60,11 @@ bind c copy-mode
|
||||
# clipboard control
|
||||
bind P paste-buffer
|
||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind -T copy-mode-vi y send-keys -X copy-selection
|
||||
#bind -T copy-mode-vi y send-keys -X copy-selection
|
||||
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
|
||||
bind -T copy-mode-vi r send-keys -X rectangle-toggle
|
||||
bind y run-shell -b "tmux show-buffer | xclip -sel clip" \; display-message "Copied tmux buffer to system clipboard"
|
||||
|
||||
|
||||
|
||||
# Refresh client
|
||||
bind R refresh-client \; display-message "Refresh already"
|
||||
@@ -86,7 +88,7 @@ bind -r k resize-pane -U 2 \; display-message "Resize up"
|
||||
bind -r j resize-pane -D 2 \; display-message "Resize down"
|
||||
|
||||
# zoom control
|
||||
bind -n M-f resize-pane -Z
|
||||
bind -n M-o resize-pane -Z
|
||||
|
||||
# split panes using | and -, make sure they open in the same path
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
@@ -95,10 +97,10 @@ bind - split-window -v -c "#{pane_current_path}"
|
||||
# Change layouts
|
||||
bind o rotate-window
|
||||
bind Space next-layout
|
||||
bind K swap-pane -s {up-of}
|
||||
bind J swap-pane -s {down-of}
|
||||
bind H swap-pane -s {left-of}
|
||||
bind L swap-pane -s {right-of}
|
||||
bind K swap-pane -d -t "{up-of}"
|
||||
bind J swap-pane -d -t "{down-of}"
|
||||
bind H swap-pane -d -t "{left-of}"
|
||||
bind L swap-pane -d -t "{right-of}"
|
||||
|
||||
# Choose Window
|
||||
bind w choose-window
|
||||
@@ -130,6 +132,9 @@ bind -n M-0 if-shell 'tmux select-window -t :10' '' 'new-window -t :10'
|
||||
# Kill Selected Pane
|
||||
bind Q kill-pane
|
||||
|
||||
# clear selected pane
|
||||
bind-key b send-keys -R \; clear-history
|
||||
|
||||
# present a menu of URLs to open from the visible pane. sweet.
|
||||
bind u capture-pane \;\
|
||||
save-buffer /tmp/tmux-buffer \;\
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
export VISUAL=/usr/bin/nvim
|
||||
export EDITOR=/usr/bin/nvim
|
||||
export BROWSER=/usr/bin/chromium
|
||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
||||
|
||||
# cuda stuff
|
||||
export CUDA_HOME=/opt/cuda
|
||||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CUDA_HOME}/lib64
|
||||
PATH=${CUDA_HOME}/bin:${PATH}
|
||||
export PATH
|
||||
|
||||
# MKL AMD fix
|
||||
export MKL_DEBUG_CPU_TYPE=5
|
||||
-44
@@ -1,44 +0,0 @@
|
||||
# Lines configured by zsh-newuser-install
|
||||
HISTFILE=~/.zhistory
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=10000
|
||||
setopt nomatch
|
||||
unsetopt autocd
|
||||
bindkey -v
|
||||
# End of lines configured by zsh-newuser-install
|
||||
# The following lines were added by compinstall
|
||||
zstyle :compinstall filename '/home/hjalmarlucius/.zshrc'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# End of lines added by compinstall
|
||||
|
||||
# more history stuff
|
||||
REPORTTIME=3 # Report command running time if it is more than 3 seconds
|
||||
setopt INC_APPEND_HISTORY # Add commands to history as they are entered, don't wait for shell to exit
|
||||
setopt EXTENDED_HISTORY # Also remember command start time and duration
|
||||
setopt HIST_IGNORE_ALL_DUPS # Do not keep duplicate commands in history
|
||||
setopt HIST_IGNORE_SPACE # Do not remember commands that start with a whitespace
|
||||
|
||||
# default ls settings
|
||||
alias ls='ls -hat --group-directories-first'
|
||||
ls --color=auto &> /dev/null && alias ls='ls --color=auto'
|
||||
export CLICOLOR=1
|
||||
|
||||
# fuzzy find
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
bindkey '^y' fzf-cd-widget
|
||||
|
||||
# configure custom command prompt
|
||||
_setup_ps1() {
|
||||
GLYPH="▲"
|
||||
[ "x$KEYMAP" = "xvicmd" ] && GLYPH="▼"
|
||||
PS1="%F{red}[%F{cyan}%*%F{red}] %(?.%F{cyan}.%F{red})$GLYPH%f %(1j.%F{cyan}[%j]%f .)%F{cyan}%~%f %(!.%F{red}#%f .)"
|
||||
}
|
||||
_setup_ps1
|
||||
|
||||
# Base16 Shell
|
||||
BASE16_SHELL="$HOME/.config/base16-shell/"
|
||||
[ -n "$PS1" ] && \
|
||||
[ -s "$BASE16_SHELL/profile_helper.sh" ] && \
|
||||
eval "$("$BASE16_SHELL/profile_helper.sh")"
|
||||
Reference in New Issue
Block a user