remove .bashrc
This commit is contained in:
parent
b08e96acba
commit
2180d01778
1 changed files with 0 additions and 44 deletions
44
.bashrc
44
.bashrc
|
@ -1,44 +0,0 @@
|
|||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# kdesrc-build #################################################################
|
||||
|
||||
## Add kdesrc-build to PATH
|
||||
export PATH="/usr/bin:$PATH"
|
||||
|
||||
## Autocomplete for kdesrc-run
|
||||
function _comp_kdesrc_run
|
||||
{
|
||||
local cur
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
# Complete only the first argument
|
||||
if [[ $COMP_CWORD != 1 ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Retrieve build modules through kdesrc-run
|
||||
# If the exit status indicates failure, set the wordlist empty to avoid
|
||||
# unrelated messages.
|
||||
local modules
|
||||
if ! modules=$(kdesrc-run --list-installed);
|
||||
then
|
||||
modules=""
|
||||
fi
|
||||
|
||||
# Return completions that match the current word
|
||||
COMPREPLY=( $(compgen -W "${modules}" -- "$cur") )
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
## Register autocomplete function
|
||||
complete -o nospace -F _comp_kdesrc_run kdesrc-run
|
||||
|
||||
################################################################################
|
||||
|
Loading…
Reference in a new issue