kernel configs on folder. profile now centralized.
This commit is contained in:
parent
94b36f0820
commit
ed3615de99
|
@ -140,6 +140,7 @@ mark h ~/
|
||||||
" %D the other window directory name.
|
" %D the other window directory name.
|
||||||
" %m run the command in a menu window
|
" %m run the command in a menu window
|
||||||
|
|
||||||
|
command! vc vim $HOME/.vimrc
|
||||||
command! df df -h %m 2> /dev/null
|
command! df df -h %m 2> /dev/null
|
||||||
command! diff vim -d %f %F
|
command! diff vim -d %f %F
|
||||||
command! zip $TSCRIPTS/zip.sh %f
|
command! zip $TSCRIPTS/zip.sh %f
|
||||||
|
|
48
.mkshrc
48
.mkshrc
|
@ -1,26 +1,28 @@
|
||||||
export PATH="$PATH:$HOME/bin:$HOME/.local/bin"
|
# export PATH="$PATH:$HOME/bin:$HOME/.local/bin"
|
||||||
export HOSTNAME="gentoo"
|
# export HOSTNAME="gentoo"
|
||||||
export SCRIPTS="$HOME/scripts"
|
# export SCRIPTS="$HOME/scripts"
|
||||||
export TSCRIPTS="$HOME/termscripts"
|
# export TSCRIPTS="$HOME/termscripts"
|
||||||
export HISTFILE="$HOME/.mksh_history"
|
# export HISTFILE="$HOME/.mksh_history"
|
||||||
export WALLPAPERS="$HOME/Pictures/wallpapers"
|
# export WALLPAPERS="$HOME/Pictures/wallpapers"
|
||||||
export SCREENSHOTS="$HOME/Pictures/Screenshots"
|
# export SCREENSHOTS="$HOME/Pictures/Screenshots"
|
||||||
export EDITOR="vim"
|
# export EDITOR="vim"
|
||||||
export VIDEO_FORMATS="mp4,mkv,avi,ogv,webm,divx,wmv,flv"
|
# export VIDEO_FORMATS="mp4,mkv,avi,ogv,webm,divx,wmv,flv"
|
||||||
export AUDIO_FORMATS="mp3,ogg,vorbis,opus,aac,wav,3gp,mpg,flac"
|
# export AUDIO_FORMATS="mp3,ogg,vorbis,opus,aac,wav,3gp,mpg,flac"
|
||||||
export VIDEOPLAYER="mpv"
|
# export VIDEOPLAYER="mpv"
|
||||||
export AUDIOPLAYER="cmus-remote"
|
# export AUDIOPLAYER="cmus-remote"
|
||||||
export TERMINAL="st"
|
# export TERMINAL="st"
|
||||||
export BROWSER="palemoon-bin"
|
# export BROWSER="palemoon-bin"
|
||||||
export MUSIC="$HOME/Music/music"
|
# export MUSIC="$HOME/Music/music"
|
||||||
export PASSWORD_STORE_DIR="$HOME/.password-store"
|
# export PASSWORD_STORE_DIR="$HOME/.password-store"
|
||||||
export ANDROID_MOUNTPOINT="$HOME/Android"
|
# export ANDROID_MOUNTPOINT="$HOME/Android"
|
||||||
export BRIGHTNESS="0.9"
|
# export BRIGHTNESS="0.9"
|
||||||
export SUDO_ASKPASS="/usr/bin/x11-ssh-askpass"
|
# export SUDO_ASKPASS="/usr/bin/x11-ssh-askpass"
|
||||||
export TRASH="$HOME/.local/trash:$HOME/.local/share/vifm/Trash"
|
# export TRASH="$HOME/.local/trash:$HOME/.local/share/vifm/Trash"
|
||||||
export DEVICES_FOLDER="/media"
|
# export DEVICES_FOLDER="/media"
|
||||||
export FAV_STREAMERS="$HOME/fav_streamers"
|
# export FAV_STREAMERS="$HOME/fav_streamers"
|
||||||
export LC_ALL=en_US.utf8
|
# export LC_ALL=en_US.utf8
|
||||||
|
|
||||||
|
source .profile
|
||||||
|
|
||||||
# custom prompt see http://comments.gmane.org/gmane.os.miros.mksh/126
|
# custom prompt see http://comments.gmane.org/gmane.os.miros.mksh/126
|
||||||
# USER
|
# USER
|
||||||
|
|
12
.profile
12
.profile
|
@ -1,4 +1,4 @@
|
||||||
ENV=$HOME/.mkshrc; export $ENV
|
# ENV=$HOME/.mkshrc; export $ENV
|
||||||
export PATH="$PATH:$HOME/bin:$HOME/.local/bin"
|
export PATH="$PATH:$HOME/bin:$HOME/.local/bin"
|
||||||
export HOSTNAME="gentoo"
|
export HOSTNAME="gentoo"
|
||||||
export SCRIPTS="$HOME/scripts"
|
export SCRIPTS="$HOME/scripts"
|
||||||
|
@ -22,3 +22,13 @@ export TRASH="$HOME/.local/trash:$HOME/.local/share/vifm/Trash"
|
||||||
export DEVICES_FOLDER="/media"
|
export DEVICES_FOLDER="/media"
|
||||||
export FAV_STREAMERS="$HOME/fav_streamers"
|
export FAV_STREAMERS="$HOME/fav_streamers"
|
||||||
export LC_ALL=en_US.utf8
|
export LC_ALL=en_US.utf8
|
||||||
|
export KERNEL_CONFIGS="$HOME/kernel-configs"
|
||||||
|
|
||||||
|
# ALIASES
|
||||||
|
alias ll='lsd --group-dirs first --date relative -alh'
|
||||||
|
alias lll='lsd --date relative --group-dirs first -lh'
|
||||||
|
alias ls='lsd'
|
||||||
|
alias l='/bin/ls'
|
||||||
|
alias sc="mksh $SCRIPTS/script-run-fzf.sh"
|
||||||
|
alias se="mksh $SCRIPTS/script-edit-fzf.sh"
|
||||||
|
alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
|
||||||
|
|
33
.vimrc
33
.vimrc
|
@ -28,22 +28,32 @@ Plug 'joshdick/onedark.vim'
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'morhetz/gruvbox'
|
||||||
Plug 'vim-scripts/ReplaceWithRegister'
|
Plug 'vim-scripts/ReplaceWithRegister'
|
||||||
Plug 'christoomey/vim-system-copy'
|
Plug 'christoomey/vim-system-copy'
|
||||||
Plug 'python-mode/python-mode', { 'branch': 'develop' }
|
" Plug 'python-mode/python-mode', { 'branch': 'develop' }
|
||||||
Plug 'tikhomirov/vim-glsl'
|
" Plug 'tikhomirov/vim-glsl'
|
||||||
" Plug 'vim-scripts/clips.vim'
|
" Plug 'vim-scripts/clips.vim'
|
||||||
Plug 'justinmk/vim-syntax-extra'
|
Plug 'justinmk/vim-syntax-extra'
|
||||||
" Pending tasks list
|
" " Pending tasks list
|
||||||
" Plug 'fisadev/FixedTaskList.vim' ", { 'for': 'python' }
|
" Plug 'fisadev/FixedTaskList.vim' ", { 'for': 'python' }
|
||||||
" " Python and other languages code checker
|
" " " Python and other languages code checker
|
||||||
" Plug 'scrooloose/syntastic' ", { 'for': 'python' }
|
" Plug 'scrooloose/syntastic' , { 'for': 'python' }
|
||||||
" " Indent text object
|
" " Indent text object
|
||||||
" Plug 'michaeljsmith/vim-indent-object' ", { 'for': 'python' }
|
" Plug 'michaeljsmith/vim-indent-object' , { 'for': 'python' }
|
||||||
" " Indentation based movements
|
" " Indentation based movements
|
||||||
" Plug 'jeetsukumaran/vim-indentwise' ", { 'for': 'python' }
|
" Plug 'jeetsukumaran/vim-indentwise' , { 'for': 'python' }
|
||||||
" Python autocompletion, go to definition.
|
" " Python autocompletion, go to definition.
|
||||||
"Plug 'davidhalter/jedi-vim', { 'for': 'python' }
|
" Plug 'davidhalter/jedi-vim', { 'for': 'python' }
|
||||||
" " Better autocompletion
|
" " Better autocompletion
|
||||||
" Plug 'Shougo/neocomplcache.vim' ", { 'for': 'python' }
|
" Plug 'Shougo/neocomplcache.vim' , { 'for': 'python' }
|
||||||
|
|
||||||
|
" Haskell prettifiers
|
||||||
|
Plug 'jaspervdj/stylish-haskell'
|
||||||
|
Plug 'chrisdone/hindent'
|
||||||
|
" Errors highlighting
|
||||||
|
Plug 'dense-analysis/ale'
|
||||||
|
" Syntax highlighting
|
||||||
|
Plug 'neovimhaskell/haskell-vim'
|
||||||
|
" noseke de que se actualiza solo haskell
|
||||||
|
Plug 'bitc/vim-hdevtools'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
@ -108,6 +118,9 @@ let g:autotagTagsFile=".tags"
|
||||||
" JAVA
|
" JAVA
|
||||||
command! MakeTags !ctags -R .
|
command! MakeTags !ctags -R .
|
||||||
|
|
||||||
|
" Recompile groff document on write
|
||||||
|
autocmd BufWritePost *.ms | :!groff -ms %:p -ep -T pdf > %:r.pdf
|
||||||
|
|
||||||
" C
|
" C
|
||||||
" set termguicolors
|
" set termguicolors
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
|
|
73
.zshrc
73
.zshrc
|
@ -10,11 +10,11 @@ export ZSH="/home/initega/.oh-my-zsh"
|
||||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
||||||
ZSH_THEME="bira"
|
ZSH_THEME="bira"
|
||||||
plugins=(
|
plugins=(
|
||||||
zsh-syntax-highlighting
|
# zsh-syntax-highlighting
|
||||||
git
|
# git
|
||||||
cp
|
# cp
|
||||||
z
|
# z
|
||||||
zsh-autosuggestions
|
# zsh-autosuggestions
|
||||||
)
|
)
|
||||||
|
|
||||||
# Set list of themes to pick from when loading at random
|
# Set list of themes to pick from when loading at random
|
||||||
|
@ -81,39 +81,40 @@ source $ZSH/oh-my-zsh.sh
|
||||||
bindkey -v
|
bindkey -v
|
||||||
precmd() { RPROMPT="" }
|
precmd() { RPROMPT="" }
|
||||||
|
|
||||||
export PATH="$PATH:$HOME/bin:$HOME/.local/bin"
|
#export PATH="$PATH:$HOME/bin:$HOME/.local/bin"
|
||||||
export HOSTNAME="gentoo"
|
#export HOSTNAME="gentoo"
|
||||||
export SCRIPTS="$HOME/scripts"
|
#export SCRIPTS="$HOME/scripts"
|
||||||
export TSCRIPTS="$HOME/termscripts"
|
#export TSCRIPTS="$HOME/termscripts"
|
||||||
export WALLPAPERS="$HOME/Pictures/wallpapers"
|
#export WALLPAPERS="$HOME/Pictures/wallpapers"
|
||||||
export SCREENSHOTS="$HOME/Pictures/Screenshots"
|
#export SCREENSHOTS="$HOME/Pictures/Screenshots"
|
||||||
export EDITOR="vim"
|
#export EDITOR="vim"
|
||||||
export VIDEO_FORMATS="mp4,mkv,avi,ogv,webm,divx,wmv,flv"
|
#export VIDEO_FORMATS="mp4,mkv,avi,ogv,webm,divx,wmv,flv"
|
||||||
export AUDIO_FORMATS="mp3,ogg,vorbis,opus,aac,wav,3gp,mpg,flac"
|
#export AUDIO_FORMATS="mp3,ogg,vorbis,opus,aac,wav,3gp,mpg,flac"
|
||||||
export VIDEOPLAYER="mpv"
|
#export VIDEOPLAYER="mpv"
|
||||||
export AUDIOPLAYER="cmus-remote"
|
#export AUDIOPLAYER="cmus-remote"
|
||||||
export TERMINAL="st"
|
#export TERMINAL="st"
|
||||||
export BROWSER="firefox-bin"
|
#export BROWSER="firefox-bin"
|
||||||
export MUSIC="$HOME/Music/music"
|
#export MUSIC="$HOME/Music/music"
|
||||||
export PASSWORD_STORE_DIR="$HOME/.password-store"
|
#export PASSWORD_STORE_DIR="$HOME/.password-store"
|
||||||
export ANDROID_MOUNTPOINT="$HOME/Android"
|
#export ANDROID_MOUNTPOINT="$HOME/Android"
|
||||||
export BRIGHTNESS="0.9"
|
#export BRIGHTNESS="0.9"
|
||||||
export SUDO_ASKPASS="/usr/bin/x11-ssh-askpass"
|
#export SUDO_ASKPASS="/usr/bin/x11-ssh-askpass"
|
||||||
export TRASH="$HOME/.local/trash:$HOME/.local/share/vifm/Trash"
|
#export TRASH="$HOME/.local/trash:$HOME/.local/share/vifm/Trash"
|
||||||
export DEVICES_FOLDER="/media"
|
#export DEVICES_FOLDER="/media"
|
||||||
export FAV_STREAMERS="$HOME/fav_streamers"
|
#export FAV_STREAMERS="$HOME/fav_streamers"
|
||||||
export LC_ALL=en_US.utf8
|
#export LC_ALL=en_US.utf8
|
||||||
|
|
||||||
#
|
##
|
||||||
# ALIASES
|
## ALIASES
|
||||||
alias ll='lsd --group-dirs first --date relative -alh'
|
#alias ll='lsd --group-dirs first --date relative -alh'
|
||||||
alias lll='lsd --date relative --group-dirs first -lh'
|
#alias lll='lsd --date relative --group-dirs first -lh'
|
||||||
alias ls='lsd'
|
#alias ls='lsd'
|
||||||
alias l='/bin/ls'
|
#alias l='/bin/ls'
|
||||||
alias sc="mksh $SCRIPTS/script-run-fzf.sh"
|
#alias sc="mksh $SCRIPTS/script-run-fzf.sh"
|
||||||
alias se="mksh $SCRIPTS/script-edit-fzf.sh"
|
#alias se="mksh $SCRIPTS/script-edit-fzf.sh"
|
||||||
alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
|
#alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
|
||||||
|
|
||||||
|
source $HOME/.profile
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,18 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
origin="$(pwd)"
|
# origin="$(pwd)"
|
||||||
cd "$SCREENSHOTS"
|
# cd "$SCREENSHOTS"
|
||||||
|
|
||||||
eguna="$(date -I)"
|
eguna="$(date -I)"
|
||||||
|
|
||||||
argazki_izena="Screenshot-$eguna"
|
argazki_izena="Screenshot-$eguna"
|
||||||
|
|
||||||
gaurko_kop="$(ls -l | grep "$argazki_izena" | wc -l)"
|
gaurko_kop="$(ls -l "$SCREENSHOTS" | grep "$argazki_izena" | wc -l)"
|
||||||
|
|
||||||
if [ "$gaurko_kop" -eq "0" ]; then
|
if [ "$gaurko_kop" -eq "0" ]; then
|
||||||
import "$argazki_izena.png"
|
import "$SCREENSHOTS/$argazki_izena.png"
|
||||||
else
|
else
|
||||||
import "$argazki_izena-$gaurko_kop.png"
|
import "$SCREENSHOTS/$argazki_izena-$gaurko_kop.png"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$origin"
|
# cd "$origin"
|
||||||
|
|
|
@ -1,18 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
origin="$(pwd)"
|
|
||||||
cd "$SCREENSHOTS"
|
|
||||||
|
|
||||||
eguna="$(date -I)"
|
eguna="$(date -I)"
|
||||||
|
|
||||||
argazki_izena="Screenshot-$eguna"
|
argazki_izena="Screenshot-$eguna"
|
||||||
|
|
||||||
gaurko_kop="$(ls -l | grep "$argazki_izena" | wc -l)"
|
gaurko_kop="$(ls -l "$SCREENSHOTS" | grep "$argazki_izena" | wc -l)"
|
||||||
|
|
||||||
if [ "$gaurko_kop" -eq "0" ]; then
|
if [ "$gaurko_kop" -eq "0" ]; then
|
||||||
import -window root "$argazki_izena.png"
|
import -window root "$SCREENSHOTS/$argazki_izena.png"
|
||||||
else
|
else
|
||||||
import -window root "$argazki_izena-$gaurko_kop.png"
|
import -window root "$SCREENSHOTS/$argazki_izena-$gaurko_kop.png"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$origin"
|
|
||||||
|
|
|
@ -1,18 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
origin="$(pwd)"
|
|
||||||
cd "$SCREENSHOTS"
|
|
||||||
|
|
||||||
eguna="$(date -I)"
|
eguna="$(date -I)"
|
||||||
|
|
||||||
argazki_izena="Screenshot-$eguna"
|
argazki_izena="Screenshot-$eguna"
|
||||||
|
|
||||||
gaurko_kop="$(ls -l | grep "$argazki_izena" | wc -l)"
|
gaurko_kop="$(ls -l "$SCREENSHOTS" | grep "$argazki_izena" | wc -l)"
|
||||||
|
|
||||||
if [ "$gaurko_kop" -eq "0" ]; then
|
if [ "$gaurko_kop" -eq "0" ]; then
|
||||||
import "$argazki_izena.png" -window current
|
import "$SCREENSHOTS/$argazki_izena.png" -window current
|
||||||
else
|
else
|
||||||
import "$argazki_izena-$gaurko_kop.png" -window current
|
import "$SCREENSHOTS/$argazki_izena-$gaurko_kop.png" -window current
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$origin"
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
next_number="$(eselect kernel list | wc -l)" &&
|
next_number="$(eselect kernel list | wc -l)" &&
|
||||||
|
|
||||||
old_config="/home/initega/kernel-config-`uname -r`" &&
|
old_config="$KERNEL_CONFIGS/kernel-config-`uname -r`" &&
|
||||||
|
|
||||||
cp /usr/src/linux/.config $old_config &&
|
cp /usr/src/linux/.config $old_config &&
|
||||||
emerge --ask --update --deep --with-bdeps=y --newuse \
|
emerge --ask --update --deep --with-bdeps=y --newuse \
|
||||||
|
|
Loading…
Reference in New Issue