Lot of Zsh cleanups.
This commit is contained in:
parent
322cdc8b43
commit
382af57891
5 changed files with 27 additions and 1613 deletions
12
.env
Normal file
12
.env
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Public environment settings
|
||||||
|
#
|
||||||
|
# Example: can be shell compatible stuff like export, alias etc. or just
|
||||||
|
# define variables like FOO=BAR
|
||||||
|
#
|
||||||
|
# You should put private stuff to .penv. It is handled the same way as this
|
||||||
|
# file but will be ignored by .gitignore.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Extend the $PATH to $HOME/bin and more.
|
||||||
|
export PATH=$HOME/bin:$HOME/.local/bin/:$HOME/.gem/ruby/3.2.0/bin:$HOME/.android/sdk/platform-tools:$HOME/.cargo/bin:$PATH
|
||||||
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -31,6 +31,7 @@
|
||||||
!.config/user-dirs.dirs
|
!.config/user-dirs.dirs
|
||||||
!.config/user-dirs.locale
|
!.config/user-dirs.locale
|
||||||
|
|
||||||
|
!.env
|
||||||
!.gitignore
|
!.gitignore
|
||||||
#!.toprc
|
#!.toprc
|
||||||
!.screenrc
|
!.screenrc
|
||||||
|
|
|
||||||
50
.zshrc
50
.zshrc
|
|
@ -1,24 +1,16 @@
|
||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
# Source some global/public stuff
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
source ~/.env
|
||||||
# confirmations, etc.) must go above this block; everything else may go below.
|
|
||||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -r $HOME/.zsh_functions.zsh ]]; then
|
# Source some private stuff
|
||||||
source $HOME/.zsh_functions.zsh
|
source ~/.penv
|
||||||
fi
|
|
||||||
|
|
||||||
# Private stuff
|
|
||||||
source ~/.zsh_private
|
|
||||||
|
|
||||||
# Java Stuff
|
# Java Stuff
|
||||||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
|
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
|
||||||
|
|
||||||
# Android / Kivy Development Stuff
|
# Android / Kivy Development Stuff
|
||||||
export ANDROID_HOME=/home/hanez/.android/sdk
|
export ANDROID_HOME=i$HOME/.android/sdk
|
||||||
export ANDROIDSDK="/home/hanez/.android/sdk"
|
export ANDROIDSDK="$HOME/.android/sdk"
|
||||||
export ANDROID_SDK_ROOT="/home/hanez/.android/sdk"
|
export ANDROID_SDK_ROOT="$HOME/.android/sdk"
|
||||||
#export ANDROIDNDK="/opt/android-ndk"
|
#export ANDROIDNDK="/opt/android-ndk"
|
||||||
#export ANDROIDAPI="27"
|
#export ANDROIDAPI="27"
|
||||||
#export ANDROIDNDKVER="r16b"
|
#export ANDROIDNDKVER="r16b"
|
||||||
|
|
@ -93,28 +85,27 @@ plugins=(colored-man-pages)
|
||||||
HISTSIZE=100000
|
HISTSIZE=100000
|
||||||
SAVEHIST=100000
|
SAVEHIST=100000
|
||||||
HISTFILE=~/.zsh_history
|
HISTFILE=~/.zsh_history
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
|
||||||
|
|
||||||
# Load oh-my-zsh stuff
|
# Load oh-my-zsh stuff
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
# Now source some stuff that should not be public
|
|
||||||
if [ -e ~/.zshprivate ]
|
|
||||||
then
|
|
||||||
source ~/.zshprivate
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Source some functions
|
# Source some functions
|
||||||
for function in ~/.zsh/functions.d/*.sh; do
|
for function in ~/.zsh/functions.d/*.sh; do
|
||||||
source $function
|
source $function
|
||||||
done
|
done
|
||||||
|
|
||||||
# Some aliases
|
# Some aliases
|
||||||
alias c='clear'
|
|
||||||
alias ..='cd ..'
|
alias ..='cd ..'
|
||||||
alias ...='cd ../..'
|
alias ...='cd ../..'
|
||||||
alias ....='cd ../../..'
|
alias ....='cd ../../..'
|
||||||
alias .....='cd ../../../..'
|
alias .....='cd ../../../..'
|
||||||
|
alias c='clear'
|
||||||
|
alias gita='git add'
|
||||||
|
alias gitc='git commit'
|
||||||
|
alias gitd='git diff'
|
||||||
|
alias gitp='git push'
|
||||||
|
alias gitpp='git pull'
|
||||||
|
alias gits='git status'
|
||||||
alias l='ls --color'
|
alias l='ls --color'
|
||||||
alias ls='ls --color'
|
alias ls='ls --color'
|
||||||
alias lsa='ls -a --color'
|
alias lsa='ls -a --color'
|
||||||
|
|
@ -124,20 +115,7 @@ alias llh='ls -lh --color'
|
||||||
alias llah='ls -lah --color'
|
alias llah='ls -lah --color'
|
||||||
alias n='nnn -diUxe'
|
alias n='nnn -diUxe'
|
||||||
alias vi=vim
|
alias vi=vim
|
||||||
alias y=yaourt
|
|
||||||
alias xterm=$TERMINAL
|
alias xterm=$TERMINAL
|
||||||
#alias backup_t410='rsync -avr --delete --delete-excluded --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/run / /run/media/hanez/BACKUP1000GB/t410/'
|
|
||||||
#alias backup_11s='rsync -avr --delete --delete-excluded --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/run / /run/media/hanez/BACKUP1000GB/11s/'
|
|
||||||
#alias spamup='rsync -avr --delete ~/.bogofilter/* b.systemchaos.org:/var/bogofilter'
|
|
||||||
#alias x5musicsync="adb-sync --delete /home/hanez/music/* /sdcard/Music"
|
|
||||||
|
|
||||||
# Some Git aliases
|
|
||||||
alias gita='git add'
|
|
||||||
alias gitc='git commit'
|
|
||||||
alias gitd='git diff'
|
|
||||||
alias gitp='git push'
|
|
||||||
alias gitpp='git pull'
|
|
||||||
alias gits='git status'
|
|
||||||
|
|
||||||
# I use xterm and this sets a nice title with hostname and cwd in it.
|
# I use xterm and this sets a nice title with hostname and cwd in it.
|
||||||
case $TERM in
|
case $TERM in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue