shells: ssh agent socket path, some minor cosmetic edits
This commit is contained in:
parent
6d36f69ccd
commit
19f466a330
4 changed files with 5 additions and 7 deletions
cli
|
@ -1,5 +1,4 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
# If not running interactively, don't do anything
|
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
HISTSIZE=1000
|
HISTSIZE=1000
|
||||||
|
@ -11,12 +10,10 @@ export LESS='i M R'
|
||||||
export PAGER=less
|
export PAGER=less
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
export TIME_STYLE=long-iso
|
export TIME_STYLE=long-iso
|
||||||
export SSH_AUTH_SOCK="$HOME/.ssh/ssh_auth_sock"
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||||
|
|
||||||
PS1='\[\e[0m\][ \u@\h \[\e[34m\]\w\[\e[0m\] ]\n\$ '
|
PS1='\[\e[0m\][ \u@\h \[\e[34m\]\w\[\e[0m\] ]\n\$ '
|
||||||
|
|
||||||
unalias ls ld ll 2>/dev/null
|
|
||||||
|
|
||||||
beep() { printf "\007"; }
|
beep() { printf "\007"; }
|
||||||
fixterm() { printf "\u001bc"; }
|
fixterm() { printf "\u001bc"; }
|
||||||
|
|
||||||
|
@ -26,6 +23,8 @@ rgrep() { command grep --exclude-dir=\.git -R "$@"; }
|
||||||
whence() { command -v "$@"; }
|
whence() { command -v "$@"; }
|
||||||
|
|
||||||
# ls
|
# ls
|
||||||
|
unalias ls ld ll 2>/dev/null
|
||||||
|
|
||||||
ls() { command ls --color=auto "$@"; }
|
ls() { command ls --color=auto "$@"; }
|
||||||
ll() { ls -alh "$@"; }
|
ll() { ls -alh "$@"; }
|
||||||
ld() { ls -dlh "$@"; }
|
ld() { ls -dlh "$@"; }
|
||||||
|
|
|
@ -2,6 +2,6 @@ set -x LESS 'i n M R S'
|
||||||
set -x PAGER less
|
set -x PAGER less
|
||||||
set -x EDITOR hx
|
set -x EDITOR hx
|
||||||
set -x TIME_STYLE long-iso
|
set -x TIME_STYLE long-iso
|
||||||
set -x SSH_AUTH_SOCK "$HOME/.ssh/ssh_auth_sock"
|
set -x SSH_AUTH_SOCK "$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||||
set -x ALTERNATE_EDITOR ""
|
set -x ALTERNATE_EDITOR ""
|
||||||
set -U fish_greeting
|
set -U fish_greeting
|
||||||
|
|
|
@ -14,7 +14,7 @@ export EDITOR
|
||||||
export LESS='i M R'
|
export LESS='i M R'
|
||||||
export PAGER=less
|
export PAGER=less
|
||||||
export TIME_STYLE=long-iso
|
export TIME_STYLE=long-iso
|
||||||
export ALTERNATE_EDITOR=
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||||
|
|
||||||
bindkey -e
|
bindkey -e
|
||||||
bindkey $terminfo[kdch1] delete-char
|
bindkey $terminfo[kdch1] delete-char
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# If not running interactively, don't do anything
|
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
confdir=$HOME/.config/zsh
|
confdir=$HOME/.config/zsh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue