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
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
HISTSIZE=1000
|
||||
|
@ -11,12 +10,10 @@ export LESS='i M R'
|
|||
export PAGER=less
|
||||
export EDITOR=vim
|
||||
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\$ '
|
||||
|
||||
unalias ls ld ll 2>/dev/null
|
||||
|
||||
beep() { printf "\007"; }
|
||||
fixterm() { printf "\u001bc"; }
|
||||
|
||||
|
@ -26,6 +23,8 @@ rgrep() { command grep --exclude-dir=\.git -R "$@"; }
|
|||
whence() { command -v "$@"; }
|
||||
|
||||
# ls
|
||||
unalias ls ld ll 2>/dev/null
|
||||
|
||||
ls() { command ls --color=auto "$@"; }
|
||||
ll() { ls -alh "$@"; }
|
||||
ld() { ls -dlh "$@"; }
|
||||
|
|
|
@ -2,6 +2,6 @@ set -x LESS 'i n M R S'
|
|||
set -x PAGER less
|
||||
set -x EDITOR hx
|
||||
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 -U fish_greeting
|
||||
|
|
|
@ -14,7 +14,7 @@ export EDITOR
|
|||
export LESS='i M R'
|
||||
export PAGER=less
|
||||
export TIME_STYLE=long-iso
|
||||
export ALTERNATE_EDITOR=
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||
|
||||
bindkey -e
|
||||
bindkey $terminfo[kdch1] delete-char
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
confdir=$HOME/.config/zsh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue