diff options
| author | Kumar Damani <kdamani@kepler.space> | 2020-10-26 20:03:23 +0000 |
|---|---|---|
| committer | Kumar Damani <kdamani@kepler.space> | 2020-10-26 20:03:23 +0000 |
| commit | 2635aadb05c7f6fd93465241c1fd386c0b6d6d86 (patch) | |
| tree | ad689e093fc8032f5b08eea6d2b29f5262b9f45f /zsh/.zshrc | |
| parent | 1b7ff08be22ab5fb380a11fef5c3f41ba53e5c6e (diff) | |
updated zsh
Diffstat (limited to 'zsh/.zshrc')
| -rw-r--r-- | zsh/.zshrc | 52 |
1 files changed, 3 insertions, 49 deletions
@@ -2,7 +2,7 @@ # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. -export ZSH="/home/$USER/.oh-my-zsh" +[ -d /home/KEPLER/$USER/.oh-my-zsh ] && export ZSH="/home/KEPLER/$USER/.oh-my-zsh" || export ZSH="/home/$USER/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, @@ -91,58 +91,12 @@ source $ZSH/oh-my-zsh.sh bindkey '^ ' autosuggest-accept -# ENVIRONMENT VARS - -# nnn ENV Vars -export NNN_BMS='h:~;d:~/Documents;D:~/Downloads;w:~/Downloads/wallpapers' -export NNN_USE_EDITOR=1 -export NNN_COLORS='2136' -export LC_COLLATE="C" -NNN_PLUGS="x:_chmod +x $nnn;\ - g:_git log;\ - o:fzopen;\ - f:fzcd" -#export NNN_PLUG=`echo $NNN_PLUGS | sed -e 's/;\s*/;/g'` -export NNN_PLUG="$(echo "$NNN_PLUGS" | sed -e 's/;\s*/;/g')" - - -n () -{ - # Block nesting of nnn in subshells - if [ -n $NNNLVL ] && [ "${NNNLVL:-0}" -ge 1 ]; then - echo "nnn is already running" - return - fi - - # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) - # To cd on quit only on ^G, remove the "export" as in: - # NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" - # NOTE: NNN_TMPFILE is fixed, should not be modified - export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" - - # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn - # stty start undef - # stty stop undef - # stty lwrap undef - # stty lnext undef - - nnn "$@" - - if [ -f "$NNN_TMPFILE" ]; then - . "$NNN_TMPFILE" - rm -f "$NNN_TMPFILE" > /dev/null - fi -} - -[ -n "$NNNLVL" ] && PS1="N$NNNLVL $PS1" - - +# ENV VARS +export XDG_CONFIG_HOME="~/.config" # Example aliases alias v="nvim" -#alias r="vifm ." alias r="ranger" -#alias ls='ls++' alias lsa='ls -A' alias mkd="mkdir -pv" |
