work
This commit is contained in:
11
zsh/zprofile
11
zsh/zprofile
@@ -9,7 +9,7 @@ _path=("$HOME/bin"
|
||||
"/usr/games")
|
||||
|
||||
PATH=""
|
||||
for part in ${_path} ; do
|
||||
for part in ${_path[@]} ; do
|
||||
PATH="$PATH:${part}"
|
||||
done
|
||||
PATH="${PATH#:}"
|
||||
@@ -17,9 +17,10 @@ export PATH
|
||||
|
||||
export EDITOR="vim"
|
||||
export VISUAL="vim"
|
||||
export BROWSER="qutebrowser"
|
||||
export BROWSER="firefox-trunk"
|
||||
|
||||
export PAGER="less"
|
||||
export LESS="FRX"
|
||||
|
||||
export VIMRC="$HOME/.vimrc"
|
||||
|
||||
@@ -34,6 +35,9 @@ export LANG=en_US.UTF-8
|
||||
export LC_TIME=de_DE.UTF-8
|
||||
export LC_COLLATE=C
|
||||
|
||||
export DOTFILES=~/dotfiles
|
||||
|
||||
|
||||
# Start the gpg-agent if not already running
|
||||
if ! pgrep -x --uid "${USER}" gpg-agent >/dev/null 2>&1; then
|
||||
gpg-connect-agent /bye >/dev/null 2>&1
|
||||
@@ -47,6 +51,3 @@ fi
|
||||
|
||||
# Set GPG TTY
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
# exec startx breaks some logind fuckery, without exec it works
|
||||
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
### TRANSLATIONS
|
||||
alias vim="nvim -u $VIMRC"
|
||||
#alias vim="nvim -u $VIMRC"
|
||||
|
||||
### COMMON OPERATIONS
|
||||
alias ll='ls -AlFh'
|
||||
@@ -7,9 +7,6 @@ alias la='ls -A'
|
||||
|
||||
alias spm="sudo pacman"
|
||||
|
||||
alias tml="tmux list-sessions"
|
||||
alias tma="tmux ls 2>/dev/null && tmux attach-session || tmux"
|
||||
|
||||
alias clip="xclip -selection clipboard"
|
||||
alias clipo="xclip -out -selection clipboard"
|
||||
|
||||
@@ -23,8 +20,6 @@ alias calc='python3 -ic "from math import *; import cmath"'
|
||||
alias le_haxxor_1='clear && dmesg | pv -qL 20'
|
||||
alias le_haxxor_2='clear && hexdump -C /dev/urandom | pv -qlL 2'
|
||||
|
||||
alias b='cd $OLDPWD'
|
||||
|
||||
alias root='sudo -sE'
|
||||
|
||||
### USEFUL DEFAULT OPTIONS
|
||||
@@ -48,17 +43,15 @@ alias du='du -h'
|
||||
alias df='df -h'
|
||||
|
||||
# show non-printable characters by default
|
||||
alias cat="cat -v"
|
||||
# alias cat="cat -v"
|
||||
|
||||
### SHORTENING COMMAND NAMES
|
||||
alias cs="cryptsetup"
|
||||
alias v="vim"
|
||||
alias g="git"
|
||||
alias t="tmux"
|
||||
alias c="cd"
|
||||
alias l="ls"
|
||||
alias s="sudo"
|
||||
alias t="tmux"
|
||||
alias cl="clear"
|
||||
|
||||
alias nocolor="sed -r \"s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g\""
|
||||
|
||||
@@ -130,3 +130,33 @@ man() {
|
||||
embiggen() {
|
||||
enscript --no-header --media=A4 --landscape --font="DejaVuSansMono30" -o - | ps2pdf - | zathura -
|
||||
}
|
||||
|
||||
sshmux () {
|
||||
ssh -t $@ "tmux a || tmux";
|
||||
}
|
||||
|
||||
t() {
|
||||
if [[ "$1" ]] ; then
|
||||
tmux new-session -A -s "$1"
|
||||
else
|
||||
tmux attach-session
|
||||
fi
|
||||
}
|
||||
|
||||
b() {
|
||||
bookmarks=${DOTFILES}/bookmarks
|
||||
bookmark="$1"
|
||||
if ! [[ "${bookmark}" ]] ; then
|
||||
printf 'Need a bookmark' >&2
|
||||
return 1
|
||||
fi
|
||||
if ! [[ -r "${bookmark}" ]] ; then
|
||||
printf 'Invalid bookmark %s' "${bookmark}" >&2
|
||||
return 1
|
||||
fi
|
||||
target="$(head -1 ${bookmark})"
|
||||
if ! [[ -e "${target}" ]] ; then
|
||||
printf 'Traget not found: %s' "${target}" >&2
|
||||
fi
|
||||
cd "$(eval ${target})"
|
||||
}
|
||||
|
||||
1
zsh/zsh/60_autojump.sh
Normal file
1
zsh/zsh/60_autojump.sh
Normal file
@@ -0,0 +1 @@
|
||||
. /usr/share/autojump/autojump.sh
|
||||
Reference in New Issue
Block a user