Update rc and profile scripts

This commit is contained in:
Oshgnacknak 2021-01-24 01:42:45 +01:00
parent c2ceafddcd
commit ee400ef94c
Signed by: Oshgnacknak
GPG key ID: 8CB7375654585956
4 changed files with 61 additions and 74 deletions

View file

@ -1,17 +1,15 @@
# #!/bin/sh
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc export BROWSER="qutebrowser"
export GOPATH="$HOME/Programming/go"
export PATH="$HOME/.local/bin:$GOPATH/bin:$PATH"
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export EDITOR="nvim"
export SYSTEMD_EDITOR="$EDITOR"
export TERMINAL="st"
export PATH="$PATH:$HOME/.scripts" export WINEPREFIX="$HOME/.wine64"
export EDITOR="/usr/bin/vim" [ "$(tty)" == "/dev/tty1" ] && exec sx
export TERMINAL="/usr/bin/urxvt"
export BROWSER="/usr/bin/firefox"
# mamby use a prompt asking about startx?
if [[ "$(tty)" = "/dev/tty1" ]]; then
pgrep i3 || exec startx
fi
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"

18
_bashrc
View file

@ -1,11 +1,17 @@
# #!/bin/sh
# ~/.bashrc
#
# If not running interactively, don't do anything alias ls='ls --color=auto'
[[ $- != *i* ]] && return alias grep='grep --color=auto'
[ -f ~/.bash_aliases ] && source ~/.bash_aliases alias vi="nvim"
alias vim="nvim"
alias f="fuck"
mkcd() {
mkdir -p $1
cd $1
}
export PS1=" export PS1="
$(tput bold)$(tput setaf 1)[$(tput setaf 3)\u$(tput setaf 2)@$(tput setaf 4)\H $(tput setaf 5)\w$(tput setaf 1)]$(tput setaf 7) $(tput bold)$(tput setaf 1)[$(tput setaf 3)\u$(tput setaf 2)@$(tput setaf 4)\H $(tput setaf 5)\w$(tput setaf 1)]$(tput setaf 7)

View file

@ -1,23 +1,5 @@
#!/bin/sh
# [ -f "$HOME/.bash_profile" ] && emulate sh -c "source $HOME/.bash_profile"
# ~/.zprofile
#
export PATH="$PATH:$HOME/.local/bin"
export EDITOR="/usr/bin/nvim"
export TERMINAL="/usr/bin/urxvt"
export BROWSER="/usr/bin/firefox"
export NNN_USE_EDITOR=1
export NNN_SCRIPTS=$HOME/.local/bin
export NNN_OPENER=mimeopen
## mamby use a prompt asking about startx?
if [[ "$(tty)" = "/dev/tty1" ]]; then
pgrep i3 || exec startx
fi
[ -f "$HOME/.zshrc" ] && source "$HOME/.zshrc"

69
_zshrc
View file

@ -1,47 +1,48 @@
# #!/bin/zsh
# ~/.zshrc
#
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
[ -f ~/.bashrc ] && source ~/.bashrc # The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored
zstyle ':completion:*' list-colors ''
HISTFILE=~/.zsh_histfile zstyle ':completion:*' menu select=0
HISTSIZE=1000 zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
SAVEHIST=1000 zstyle :compinstall filename '/home/osh/.zshrc'
setopt appendhistory extendedglob nomatch
unsetopt autocd beep notify
zstyle ':completion:*' menu select
zstyle ':completion:*' max-errors 5
setopt COMPLETE_ALIASES
autoload -Uz compinit autoload -Uz compinit
compinit compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
# vim mode with editor in command line HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory nomatch notify extendedglob
bindkey -v bindkey -v
autoload edit-command-line # End of lines configured by zsh-newuser-install
zle -N edit-command-line
zle -N zle-keymap-select
zle -N zle-line-init
zle -N zle-line-finish
bindkey -M vicmd v edit-command-line
function zle-keymap-select zle-line-init zle-line-finish () { # Change cursor shape for different vi modes.
if [ $KEYMAP = vicmd ]; then function zle-keymap-select {
echo -ne "\e[2 q" if [[ ${KEYMAP} == vicmd ]] ||
else [[ $1 = 'block' ]]; then
echo -ne "\e[6 q" echo -ne '\e[1 q'
elif [[ ${KEYMAP} == main ]] ||
[[ ${KEYMAP} == viins ]] ||
[[ ${KEYMAP} = '' ]] ||
[[ $1 = 'beam' ]]; then
echo -ne '\e[5 q'
fi fi
} }
zle -N zle-keymap-select
[ -f "$HOME/.bashrc" ] && emulate sh -c "source $HOME/.bashrc"
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh
setopt interactivecomments
export PS1=" export PS1="
%{$(tput bold)%}%{$(tput setaf 1)%}[%{$(tput setaf 3)%}%n%{$(tput setaf 2)%}@%{$(tput setaf 4)%}%M %{$(tput setaf 5)%}%~%{$(tput setaf 1)%}]%{$(tput setaf 7)%} %{$(tput bold)%}%{$(tput setaf 1)%}[%{$(tput setaf 3)%}%n%{$(tput setaf 2)%}@%{$(tput setaf 4)%}%M %{$(tput setaf 5)%}%~%{$(tput setaf 1)%}]%{$(tput setaf 7)%}
$ %{$(tput sgr0)%}" $ %{$(tput sgr0)%}"